Exemplo n.º 1
0
        public JsonResult GetSensitivities()
        {
            try
            {
                AllergiesRepository     objRepo = new AllergiesRepository();
                List <SensitivityModel> model   = objRepo.GetSensitivities();

                return(Json(new { Success = true, Object = model }));
            }
            catch (Exception ex)
            {
                return(Json(new { Message = ex.Message }));
            }
        }