Пример #1
0
        public ResultViewModels <HotelPackageEditViewModel> EditHotelPackage(HotelPackageEditViewModel HotelPackageEditView)
        {
            ResultViewModels <HotelPackageEditViewModel> result
                = new ResultViewModels <HotelPackageEditViewModel>();

            try
            {
                var hotelpackageTemp = HotelPackageService.Update(HotelPackageEditView);
                if (hotelpackageTemp == null)
                {
                    result.Successed = false;
                    result.Message   = "Data is empty";
                }
                else
                {
                    result.Successed = true;

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

            return(result);
        }
Пример #2
0
        public HotelPackageEditViewModel EditHotelPackage(HotelPackageEditViewModel HotelPackageEditView)
        {
            var HotelPackage = HotelPackageService.Update(HotelPackageEditView);

            return(HotelPackage);
        }