Пример #1
0
 public string GetPetsitter(string petsitterId)
 {
     try
     {
         Dictionary <string, object> res = _service.CreateSuccessRes();
         res.Add("PetsitterProfile", _service.ConvertDataTable(_Petsitterdata.GetPetsitterDetails(petsitterId)));
         res.Add("PetsitterPriceList", _service.ConvertDataTable(_Petsitterdata.GetPetsitterPriceList(petsitterId)));
         res.Add("PetsitterPets", _service.ConvertDataTable(_Petsitterdata.GetUserPets(petsitterId)));
         return(_js.Serialize(res));
     }
     catch (Exception ex)
     {
         Dictionary <string, object> res = _service.CreateErrorRes(ex);
         return(_js.Serialize(res));
     }
 }
Пример #2
0
 public string CheckUser(string email, string password)
 {
     try
     {
         Dictionary <string, object> res = _service.CreateSuccessRes();
         res.Add("User", _service.ConvertDataTable(_userData.CheckUser(email, password)));
         res.Add("PetsitterPriceList", _service.ConvertDataTable(_petsitterdata.GetPetsitterPriceList("1")));
         res.Add("PetsitterPets", _service.ConvertDataTable(_petsitterdata.GetUserPets("1")));
         return(_js.Serialize(res));
     }
     catch (Exception ex)
     {
         Dictionary <string, object> res = _service.CreateErrorRes(ex);
         return(_js.Serialize(res));
     }
 }