public void ItExists() { // Arrange // Act // Assert Assert.IsNotNull(_horseService.GetAll()); }
public ActionResult Index() { var horses = _horseService.GetAll(); var model = horses.Select(_horseSummaryMapper.Map).ToList(); return(View(model)); }
public ActionResult Index() { var horses = _horseService.GetAll(); var model = horses.Select(_horseSummaryMapper.Map).ToList(); ViewBag.Message = "Default"; return(View("Index", model)); }
public IActionResult Get() { var horses = _horseService.GetAll(); return(Ok(horses)); }