public ActionResult Create(int?id)
        {
            var userName = System.Web.HttpContext.Current.User.Identity.Name;
            var user     = _systemService.GetUserAndRole(0, userName);

            if (user == null)
            {
                return(RedirectToAction("Index", "Login"));
            }

            if (user.StockServiceR == 0)
            {
                return(RedirectToAction("Index", "Home"));
            }

            var item = new WAMS_ITEMS_SERVICE();

            if (id.HasValue)
            {
                item = _service.GetByKey(id.Value);
            }

            var model = new ServiceViewModel
            {
                Id               = item.Id,
                vIDServiceItem   = item.vIDServiceItem,
                vServiceItemName = item.vServiceItemName,
                bUnitID          = item.bUnitID,
                bCategoryID      = item.bCategoryID,
                bPositionID      = item.bPositionID,
                bWeight          = item.bWeight,
                vAccountCode     = item.vAccountCode,
                Timestamp        = item.Timestamp,
                UserLogin        = user,
                Categories       = new SelectList(_systemService.CategoryStockList(8), "Id", "Name"),
                Units            = new SelectList(_systemService.UnitStockList(8), "Id", "Name"),
                Positions        = new SelectList(_systemService.PositionStockList(), "Id", "Name")
            };

            return(View(model));
        }