public async override Task <VehicleCategoryView> Execute(CreateVehicleCategoryCommand command, User?user) { var cat = await service.Create( new VehicleCategoryCreate( command.Name, command.Description ), user ! ); throw new NotImplementedException(); // return mapper.Map<VehicleCategory, VehicleCategoryView>(cat); }
public async Task <ActionResult <VehicleCategoryForReturnDto> > Create(VehicleCategoryForCreationDto createDto) { return(await vehicleCategoryService.Create(createDto)); }