// GET: Articles/Create public ActionResult Create() { var storesOutput = _storeAppService.GetAllStores(); ViewBag.StoreId = new SelectList(storesOutput.Stores, "Id", "Name"); return(View()); }
// GET services/stores public IHttpActionResult Get() { try { var stores = _storeAppService.GetAllStores(); return(Ok(stores)); } catch (Exception) { return(InternalServerError()); } }
// GET: Stores public ActionResult Index() { var output = _storeAppService.GetAllStores(); return(View(output.Stores)); }