public PmsResponseDto DeleteExtraCharge(int id) { if (id <= 0) { throw new PmsException("ExtraCharge is not valid. Hence ExtraCharge can not be deleted."); } var response = new PmsResponseDto(); if (_iPmsLogic.DeleteExtraCharge(id)) { 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); }