Added signalR in update expesne API

This commit is contained in:
ashutosh.nehete 2025-07-24 16:16:30 +05:30
parent c881964ab1
commit c2fe726f0c

View File

@ -88,6 +88,11 @@ namespace Marco.Pms.Services.Controllers
{
var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
var response = await _expensesService.UpdateExpanseAsync(id, model, loggedInEmployee, tenantId);
if (response.Success)
{
var notification = new { LoggedInUserId = loggedInEmployee.Id, Keyword = "Expanse", Response = response.Data };
await _signalR.SendNotificationAsync(notification);
}
return StatusCode(response.StatusCode, response);
}