Exemplo n.º 1
0
 def post(self, request: HttpRequest, dto: PlaceInDto):
     place = PlaceService.create(dto.name)
     return ApiResponse.success(PlaceOutDto.from_place(place))
Exemplo n.º 2
0
 def save(self, commit=True):
     place = PlaceService.create(name=self.cleaned_data[NAME])
     return place