first commit
This commit is contained in:
26
Complex.Application/Other/Common/Dto/ResultDto.cs
Normal file
26
Complex.Application/Other/Common/Dto/ResultDto.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace Complex.Common.Dto
|
||||
{
|
||||
public class ResultDto
|
||||
{
|
||||
public bool IsSuccess { get; set; }
|
||||
public string Message { get; set; }
|
||||
}
|
||||
|
||||
public class ResultDto<T>
|
||||
{
|
||||
public ResultDto()
|
||||
{
|
||||
|
||||
}
|
||||
public ResultDto(T data,bool isSuccess=true)
|
||||
{
|
||||
Data = data;
|
||||
IsSuccess = isSuccess;
|
||||
}
|
||||
public bool IsSuccess { get; set; }
|
||||
public string Message { get; set; }
|
||||
public T Data { get; set; }
|
||||
public int RowCount { set; get; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user