public async Task <string> UpdateNotification(int Id, Model.Notification _notification) { string Status = string.Empty; var notification = Mapper.Map <Model.Notification, Data.Notification>(_notification); var result = data.Put(Id, notification); Status = result ? "Notification updated successfully." : "Failed to update Notification"; return(Status); }