InitTransfer() public method

Inits the transfer.
public InitTransfer ( UserProfile user, IUnitOfWork repository ) : void
user UserProfile The user.
repository IUnitOfWork The repository.
return void
        private OtherDispatchAllocationViewModel InitTransfer(OtherDispatchAllocationViewModel otherDispatchAllocationViewModel)
        {
            var user = _userProfileService.GetUser(User.Identity.Name);
            var tohubs = _hubService.GetOthersHavingSameOwner(user.DefaultHub);

            var commodities = _commonService.GetAllParents();
            var commodityTypes = _commodityTypeService.GetAllCommodityType();
            var programs = _commonService.GetAllProgram();
            var units = _commonService.GetAllUnit();

            otherDispatchAllocationViewModel.InitTransfer(user, tohubs, commodities, commodityTypes, programs, units);
            return otherDispatchAllocationViewModel;
        }