public IHttpActionResult Book(NewAppointmentViewModel model) { try { var identity = (ClaimsIdentity)User.Identity; string accountId = identity.Claims.FirstOrDefault(c => c.Type.Equals("AccountId")).Value; model.AccountId = accountId; _apmServices.BookAppoint(model); return(Ok("Book Success")); } catch (Exception ex) { ErrorSignal.FromCurrentContext().Raise(ex); return(BadRequest("Book Failed")); } }