Пример #1
0
        public ActionResult AddtoList(long itemId, string sessionId)
        {
            string   qty = Request.Form["itemQuantity"] == "" ? "1" : Request.Form["itemQuantity"];
            Employee emp = EmployeeService.GetUserBySessionId(sessionId);

            RequisitionService.SaveToCart(itemId, emp.EmpId, Convert.ToInt32(qty));
            return(RedirectToAction("NewRequisition", "Requisition", new { sessionId = sessionId }));
        }