public void ItExists() { // Arrange // Act // Assert Assert.IsNotNull(_horseService.Get(1)); }
public ActionResult Horse(int id) { var horse = _horseService.Get(id); var model = _horseDetailMapper.Map(horse); return(View(model)); }
public ActionResult Detail(int id) { var horse = _horseService.Get(id); var model = _horseDetailMapper.Map(horse); ViewBag.Message = "Default"; return(View("Detail", model)); }
public IActionResult Get(int id) { var horse = _horseService.Get(id); if (horse == null) { return(NotFound("Horse Not Found")); } return(Ok(horse)); }