using Bro.Common.Helper;
|
using System;
|
|
namespace Bro.Common.Model
|
{
|
public class ResponseMessage
|
{
|
public ResponseMessage() { }
|
|
public int Code { get; set; }
|
|
public bool Result { get; set; } = true;
|
|
public string Message { get; set; }
|
|
public string DataJson { get; set; }
|
|
public void GetMessageFromException(Exception ex)
|
{
|
{
|
Code = 9999;
|
Message = ex.GetExceptionMessage();
|
}
|
|
Result = false;
|
}
|
}
|
|
//public class Info
|
//{
|
// public Info() { }
|
|
// public Info(string _title, string _detail = "")
|
// {
|
// Title = _title;
|
// Detail = _detail;
|
// }
|
// public string Title { get; set; }
|
|
// public string Detail { get; set; }
|
//}
|
}
|