public IHttpActionResult WorkingHour(List <WorkingHourViewModel> workingHours) { try { var identity = (ClaimsIdentity)User.Identity; string accountId = identity.Claims.FirstOrDefault(c => c.Type.Equals("AccountId")).Value; _workingHourService.Update(accountId, workingHours); _slotService.GenerateSlotForSalon(accountId); return(Json("Update Working Hour Success")); } catch (Exception ex) { ErrorSignal.FromCurrentContext().Raise(ex); return(BadRequest("Update Profile Failed")); } }