コード例 #1
0
        public ActionResult <CompanyDto> GetCompanyByName(string name)
        {
            var companyFromRepo = _leadsRepo.GetCompanyFromName(name);

            if (companyFromRepo != null)
            {
                return(Ok(_mapper.Map <CompanyDto>(companyFromRepo)));
            }
            return(NotFound());
        }