public AddNewItemResponse Add(CompanyModel company) { bool isValid = company.IsValid(); AddNewItemResponse response = new AddNewItemResponse() { IsSuccess = isValid }; if (isValid) { AddCompany(company); } return(response); }
public AddNewItemResponse Add(CompanyModel company) { bool isValid = company.IsValid(); AddNewItemResponse response = new AddNewItemResponse() { IsSuccess = isValid }; if (isValid) { AddCompany(company); } return(response); }