InitLoan() публичный Метод

Inits the loan.
public InitLoan ( UserProfile user, IUnitOfWork repository ) : void
user UserProfile The user.
repository IUnitOfWork The repository.
Результат void
        private OtherDispatchAllocationViewModel InitLoan(OtherDispatchAllocationViewModel otherDispatchAllocationViewModel)
        {
            var user = _userProfileService.GetUser(User.Identity.Name);
            var tohubs = _hubService.GetOthersWithDifferentOwner(user.DefaultHub);

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

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