Example #1
0
        public ActionResult Create()
        {
            var user        = _userProfileService.GetUser(User.Identity.Name);
            var fromStore   = _hubService.GetAllStoreByUser(user);
            var commodities = _commodityService.GetAllParents();
            var programs    = _programService.GetAllProgramsForReport();
            var units       = _unitService.GetAllUnit();
            var toStore     = _hubService.GetAllStoreByUser(user);
            var reasons     = _detailService.GetReasonByMaster(Master.Constants.REASON_FOR_INTERNAL_MOVMENT);
            var viewModel   = new InternalMovementViewModel(fromStore, commodities, programs, units, toStore, reasons);

            return(View(viewModel));
        }