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

            return(companyRepo.GetCompanyName(source));
        }