添加项目文件。
This commit is contained in:
23
Entities/DTO/ApiResponse.cs
Normal file
23
Entities/DTO/ApiResponse.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace TechHelper.Services
|
||||
{
|
||||
public class ApiResponse
|
||||
{
|
||||
public ApiResponse(string message, bool status = false)
|
||||
{
|
||||
this.Message = message;
|
||||
this.Status = status;
|
||||
}
|
||||
|
||||
public ApiResponse(bool status, object result)
|
||||
{
|
||||
this.Status = status;
|
||||
this.Result = result;
|
||||
}
|
||||
|
||||
public string Message { get; set; }
|
||||
|
||||
public bool Status { get; set; }
|
||||
|
||||
public object Result { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user