Beispiel #1
0
        public async Task <PartialViewResult> CreateOrEditModal(int?id)
        {
            ITruckAppService       truckAppService = this._truckAppService;
            NullableIdInput <long> nullableIdInput = new NullableIdInput <long>()
            {
                Id = id
            };
            GetTruckForEditOutput truckForEdit = await truckAppService.GetTruckForEdit(nullableIdInput);

            return(this.PartialView("_CreateOrEditModal", new CreateOrEditTruckModalViewModel(truckForEdit)));
        }
Beispiel #2
0
 public TrucksController(ITruckAppService truckAppService, IGenericAppService genericAppService, IBinaryObjectManager binaryObjectManager)
 {
     this._truckAppService     = truckAppService;
     this._genericAppService   = genericAppService;
     this._binaryObjectManager = binaryObjectManager;
 }