public async Task UpdateKit(Guid id, UpdatePackListKitDto dto) { var packlist = await _packListsRepository.Get(id); packlist.UpdateKit(dto.Kit); await _packListsRepository.Update(packlist); }
public async Task UpdatePackListKit(Guid listId, bool kit) { var dto = new UpdatePackListKitDto { Kit = kit }; await Patch($"{PacklistUrlPrefix}/{listId}/kit", dto); }
public async Task <IActionResult> UpdateMaximized([FromBody] UpdatePackListKitDto dto, Guid id) { await _packListService.UpdateKit(id, dto); return(Ok()); }