Exemplo n.º 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)));
        }
 public CreateOrUpdateFillLotModalViewModel(GetFillLotForEditOutput output)
 {
     output.MapTo <GetFillLotForEditOutput, CreateOrUpdateFillLotModalViewModel>(this);
 }