public ResultViewModels <HotelPackageEditViewModel> AddHotelPackage(HotelPackageEditViewModel HotelPackageEditView) { ResultViewModels <HotelPackageEditViewModel> result = new ResultViewModels <HotelPackageEditViewModel>(); try { var hotelpackageTemp = HotelPackageService.Add(HotelPackageEditView); if (hotelpackageTemp == null) { result.Successed = false; result.Message = "Data is empty"; } else { result.Successed = true; result.Message = "Data added"; result.Data = hotelpackageTemp; } } catch (Exception ex) { result.Successed = false; result.Message = "Something Went Wrong !!"; } return(result); }
public HotelPackageEditViewModel AddHotelPackage(HotelPackageEditViewModel HotelPackageEditView) { var HotelPackage = HotelPackageService.Add(HotelPackageEditView); return(HotelPackage); }