public ResultViewModels <IEnumerable <ResturantPackageViewModel> > FilterResturantPackage(string name)
        {
            ResultViewModels <IEnumerable <ResturantPackageViewModel> > result
                = new ResultViewModels <IEnumerable <ResturantPackageViewModel> >();

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

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

            return(result);
        }
Ejemplo n.º 2
0
 public IEnumerable <ResturantPackageViewModel> FilterResturantPackage(String Name)
 {
     return(resturantPackageService.GetFilter(Name));
 }