示例#1
0
 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));
        }
示例#3
0
        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));
        }