示例#1
0
        public async Task <PartialViewResult> CreateOrUpdateModal(long?id = null)
        {
            int?impersonatorTenantId;
            int value;

            if (this.AbpSession.ImpersonatorTenantId.HasValue)
            {
                impersonatorTenantId = this.AbpSession.ImpersonatorTenantId;
                value = impersonatorTenantId.Value;
            }
            else
            {
                impersonatorTenantId = this.AbpSession.TenantId;
                value = impersonatorTenantId.Value;
            }
            IFillLotAppService     fillLotAppService = this._fillLotAppService;
            NullableIdInput <long> nullableIdInput   = new NullableIdInput <long>()
            {
                Id = id
            };
            GetFillLotForEditOutput fillLotForEdit = await fillLotAppService.GetFillLotForEdit(nullableIdInput);

            return(this.PartialView("_CreateOrUpdateModal", new CreateOrUpdateFillLotModalViewModel(fillLotForEdit)));
        }
示例#2
0
 public FillLotsController(IFillLotAppService fillLotAppService, IBinaryObjectManager binaryObjectManager)
 {
     this._fillLotAppService   = fillLotAppService;
     this._binaryObjectManager = binaryObjectManager;
 }