public ResultViewModels <HotelPackageViewModel> GetHotelPackageByID(int id) { ResultViewModels <HotelPackageViewModel> result = new ResultViewModels <HotelPackageViewModel>(); try { var hotelpackageTemp = HotelPackageService.GetByID(id); if (hotelpackageTemp == null) { result.Successed = false; result.Message = "No Data Found"; } else { result.Successed = true; result.Message = "All Data Found"; result.Data = hotelpackageTemp; } } catch (Exception ex) { result.Successed = false; result.Message = "Something Went Wrong !!"; } return(result); }
public HotelPackageViewModel GetHotelPackageByID(int id) { return(HotelPackageService.GetByID(id)); }