Example #1
0
 // GET: api/Appointment
 public IHttpActionResult Get()
 {
     try
     {
         var    identity  = (ClaimsIdentity)User.Identity;
         string accountId = identity.Claims.FirstOrDefault(p => p.Type.Equals("AccountId")).Value;
         var    result    = _apmServices.GetAllAppointment(accountId);
         return(Json(result));
     }
     catch (Exception ex)
     {
         ErrorSignal.FromCurrentContext().Raise(ex);
         return(BadRequest("Get Appointments Failed"));
     }
 }
Example #2
0
        private IList <SelectListItem> PrepareMRDropdown(string SelectedText = "Select MR", int Id = 0)
        {
            var PatientList             = _appointmentServices.GetAllAppointment().Where(a => a.Deleted != true);
            List <SelectListItem> items = new List <SelectListItem>();

            foreach (var MRData in PatientList)
            {
                items.Add(new SelectListItem
                {
                    Text  = MRData.MR,
                    Value = MRData.Id.ToString()
                });
            }



            return(items);
        }