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); }
public HotelPackageEditViewModel EditHotelPackage(HotelPackageEditViewModel HotelPackageEditView) { var HotelPackage = HotelPackageService.Update(HotelPackageEditView); return(HotelPackage); }