コード例 #1
0
        //
        // GET: /Admin/Furnitures/

        public ActionResult Index()
        {
            return(View(new IndexFurnituresViewModel
            {
                Furnitures = FurnitureService.GetAll()
            }));
        }
コード例 #2
0
        public IActionResult GetColors()
        {
            var response = _furnitureService.GetAll <Color, ColorsResponse>();

            return(StatusCode(200, response));
        }