public RemoveRestrictionResponse RemoveRestriction(RemoveRestrictionRequest request) { RemoveRestrictionResponse response = new RemoveRestrictionResponse(); response.Errors = new List <BusinessRule>(); try { if (_restrictionRepository.Remove(request.RestrictionId) > 0) { response.RestrictionDeleted = true; } } catch (Exception ex) { response.Errors.Add(new BusinessRule("DAL", "DAL_ERROR: " + ex.Message)); } return(response); }