/// <summary> /// This function is for rendering index page. /// </summary> /// <returns></returns> public ActionResult Index() { var stockTakingPreProductViewModel = new StockTakingPreProductViewModel { StockTakingPreProductGrid = InitiateStockTakingPreProductGrid() }; return(View(stockTakingPreProductViewModel)); }
public ActionResult CreateAndUpdate(StockTakingPreProductViewModel model) { //This feed data for funciton only. Business rule not yet verified\ DateTime udate = new DateTime(); var terminalNo = _identityDomain.FindTerminalNo(HttpContext.User.Identity); //if (ModelState.IsValid) //{ var result = _stockTakingPreProductDomain.CreateAndUpdate(model.PreProductCode, model.ShelfNo, model.ContainerCode, model.Quantity, model.LotNo, terminalNo, udate, model.ContainerType); if (result.IsSuccess) { return(Json(new { Success = true })); } return(Json(new { Success = false })); //} //return Json(new { Success = false }); }