예제 #1
0
        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);
        }
예제 #2
0
 public async Task <ActionResult <VehicleCategoryForReturnDto> > Create(VehicleCategoryForCreationDto createDto)
 {
     return(await vehicleCategoryService.Create(createDto));
 }