Ejemplo n.º 1
0
    public string SearchFilter(string UserId, string AnimalType, string SizeCategory, string ServiceId, string StartDate, string EndDate, string Price, string LivingArea, string StartTime, string EndTime)
    {
        try
        {
            Dictionary <string, object> res = _service.CreateSuccessRes();
            res.Add("SearchPetsitter", _service.ConvertDataTable(_Petsitterdata.FilterPetsitter(int.Parse(UserId), int.Parse(AnimalType), SizeCategory, int.Parse(ServiceId), StartDate, EndDate, decimal.Parse(Price), LivingArea, StartTime, EndTime)));
            return(_js.Serialize(res));
        }

        catch (Exception ex)
        {
            Dictionary <string, object> res = _service.CreateErrorRes(ex);
            return(_js.Serialize(res));
        }
    }