Exemplo n.º 1
0
        public HotelPackageEditViewModel Update(HotelPackageEditViewModel HotelPackage)
        {
            HotelPackage _HotelPackage = HotelPackageRepo.Update(HotelPackage.toModel());

            unitOfWork.commit();
            return(_HotelPackage.toEditViewModel());
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
 public void Remove(HotelPackageEditViewModel HotelPackage)
 {
     HotelPackageRepo.Remove(HotelPackage.toModel());
     unitOfWork.commit();
 }
Exemplo n.º 4
0
        public HotelPackageEditViewModel EditHotelPackage(HotelPackageEditViewModel HotelPackageEditView)
        {
            var HotelPackage = HotelPackageService.Update(HotelPackageEditView);

            return(HotelPackage);
        }
Exemplo n.º 5
0
        public HotelPackageEditViewModel AddHotelPackage(HotelPackageEditViewModel HotelPackageEditView)
        {
            var HotelPackage = HotelPackageService.Add(HotelPackageEditView);

            return(HotelPackage);
        }