Example #1
0
        public ResultViewModels <IEnumerable <HotelPackageViewModel> > FilterHotelPackage(string name)
        {
            ResultViewModels <IEnumerable <HotelPackageViewModel> > result
                = new ResultViewModels <IEnumerable <HotelPackageViewModel> >();

            try
            {
                var hotelpackageTemp = HotelPackageService.GetFilter(name);
                if (hotelpackageTemp == null)
                {
                    result.Successed = false;
                    result.Message   = "No Data Found";
                }
                else
                {
                    result.Successed = true;

                    result.Message = "All Data Found";
                    result.Data    = hotelpackageTemp;
                }
            }
            catch (Exception ex)
            {
                result.Successed = false;
                result.Message   = "Something Went Wrong !!";
            }

            return(result);
        }
 public IEnumerable <HotelPackageViewModel> FilterHotelPackage(String Name)
 {
     return(HotelPackageService.GetFilter(Name));
 }