public IActionResult GetCompanyName(int companyId) { try { var name = CompanyRepo.GetCompanyName(companyId); return(new ObjectResult(name)); } catch (Exception) { return(StatusCode(500)); } }
protected override string ResolveCore(int source) { ICompanyRepo companyRepo = new CompanyRepo(new DatabaseFactory()); return(companyRepo.GetCompanyName(source)); }