public IActionResult GetContactCount(int company) { var count = ContactRepo.GetContactCount(company); if (count > -1) { return(new ObjectResult(count)); } return(StatusCode(500)); }