コード例 #1
0
        protected override async Task <HorseDetailsCreateResponse> AddItemAsync(HorseEditCreateRequest request)
        {
            var entity = request.ToEntity();

            var newEntity = await repository.AddAsync(entity);

            return(newEntity.ToDto());
        }
コード例 #2
0
        protected override async Task <HorseDetailsCreateResponse> EditItemAsync(HorseEditCreateRequest request)
        {
            var entity = request.ToEntity();

            await repository.UpdateAsync(entity);

            return(entity.ToDto());
        }