public ActionResult <CompanyDto> GetCompanyByName(string name) { var companyFromRepo = _leadsRepo.GetCompanyFromName(name); if (companyFromRepo != null) { return(Ok(_mapper.Map <CompanyDto>(companyFromRepo))); } return(NotFound()); }
public ActionResult <CompanyDto> GetCompanyByName(string name) { var companyFromRepo = _leadsRepo.GetCompanyFromName(name); if (companyFromRepo != null) { return(Ok(_mapper.Map <CompanyDto>(companyFromRepo))); } return(NotFound()); }