Changed the keyword for updating and creating project

This commit is contained in:
ashutosh.nehete 2025-06-12 20:53:24 +05:30
parent 0636c8aedd
commit 790e9f63e1

View File

@ -335,7 +335,7 @@ namespace MarcoBMS.Services.Controllers
_context.Projects.Add(project);
await _context.SaveChangesAsync();
var notification = new { LoggedInUserId = LoggedInEmployee.Id, Keyword = "Project", Response = project.ToProjectDto() };
var notification = new { LoggedInUserId = LoggedInEmployee.Id, Keyword = "Create_Project", Response = project.ToProjectDto() };
await _signalR.Clients.All.SendAsync("NotificationEventHandler", notification);
@ -365,7 +365,7 @@ namespace MarcoBMS.Services.Controllers
await _context.SaveChangesAsync();
var notification = new { LoggedInUserId = LoggedInEmployee.Id, Keyword = "Project", Response = project.ToProjectDto() };
var notification = new { LoggedInUserId = LoggedInEmployee.Id, Keyword = "Update_Project", Response = project.ToProjectDto() };
await _signalR.Clients.All.SendAsync("NotificationEventHandler", notification);