public PmsResponseDto DeleteGuest(int GuestId) { if (GuestId <= 0) { throw new PmsException("Guest is not valid. Hence Guest can not be deleted."); } var response = new PmsResponseDto(); if (_iPmsLogic.DeleteGuest(GuestId)) { response.ResponseStatus = PmsApiStatus.Success.ToString(); response.StatusDescription = "Record deleted successfully."; } else { response.ResponseStatus = PmsApiStatus.Failure.ToString(); response.StatusDescription = "Operation failed.Please contact administrator."; } return(response); }