Example #1
0
        //
        // GET: /Admin/Furnitures/

        public ActionResult Index()
        {
            return(View(new IndexFurnituresViewModel
            {
                Furnitures = FurnitureService.GetAll()
            }));
        }
        public IActionResult GetColors()
        {
            var response = _furnitureService.GetAll <Color, ColorsResponse>();

            return(StatusCode(200, response));
        }