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))); }
public TrucksController(ITruckAppService truckAppService, IGenericAppService genericAppService, IBinaryObjectManager binaryObjectManager) { this._truckAppService = truckAppService; this._genericAppService = genericAppService; this._binaryObjectManager = binaryObjectManager; }