public PmsResponseDto DeleteReward(int rewardId) { if (rewardId <= 0) { throw new PmsException("Reward id is not valid. Hence Reward can not be deleted."); } var response = new PmsResponseDto(); if (_iPmsLogic.DeleteReward(rewardId)) { response.ResponseStatus = PmsApiStatus.Success.ToString(); response.StatusDescription = "Reward Deleted successfully."; } else { response.ResponseStatus = PmsApiStatus.Failure.ToString(); response.StatusDescription = "Reward Deletion failed.Contact administrator."; } return(response); }