Files
Yi.Framework/Yi.Framework.Net6/Yi.Framework.Interface/Base/Crud/ICreateAppService.cs
2023-01-04 20:50:10 +08:00

24 lines
544 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Interface.Base.Crud
{
public interface ICreateAppService<TEntityDto>
: ICreateAppService<TEntityDto, TEntityDto>
{
}
public interface ICreateAppService<TCreateResultOutputDto
, in TCreateInputDto> : IApplicationService
{
Task<TCreateResultOutputDto> CreateAsync(TCreateInputDto dto);
Task CreateAsync(IEnumerable<TCreateInputDto> dtos);
}
}