public IHttpActionResult GetItemsToCollect(int?employeeId) { using (var db = new ADProjectDb()) { List <Container> containers = representativeService.GetCollectRequestedItems(db, employeeId); List <JsonContainer> jsonContainers = TransformToJsonContainer(containers); return(Ok(jsonContainers)); } }
public ActionResult CollectRequestedItems() { using (var db = new ADProjectDb()) { List <Container> containers = representativeService.GetCollectRequestedItems(db); ViewData["containers"] = containers; return(View()); } }