protected override async Task <HorseDetailsCreateResponse> AddItemAsync(HorseEditCreateRequest request) { var entity = request.ToEntity(); var newEntity = await repository.AddAsync(entity); return(newEntity.ToDto()); }
protected override async Task <HorseDetailsCreateResponse> EditItemAsync(HorseEditCreateRequest request) { var entity = request.ToEntity(); await repository.UpdateAsync(entity); return(entity.ToDto()); }