public void RemoveHotelPackage(int id)
 {
     HotelPackageService.Remove(new HotelPackageEditViewModel()
     {
         ID = id
     });
 }
Example #2
0
        public ResultViewModels <string> RemoveHotelPackage(int id)
        {
            ResultViewModels <string> result
                = new ResultViewModels <string>();

            try
            {
                result.Successed = true;
                result.Message   = "Successfully Deleted";
                HotelPackageService.Remove(id);
            }
            catch (Exception ex)
            {
                result.Successed = false;
                result.Message   = "Error Occured";
            }
            return(result);
        }