Пример #1
0
 public string GetAnimalTypes()
 {
     try
     {
         Dictionary <string, object> res = _service.CreateSuccessRes();
         res.Add("Animal", _service.ConvertDataTable(_animalData.GetAnimalType()));
         return(_js.Serialize(res));
     }
     catch (Exception ex)
     {
         Dictionary <string, object> res = _service.CreateErrorRes(ex);
         return(_js.Serialize(res));
     }
 }