You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/Queries/Storage/QueryResult.cs

27 lines
618 B

namespace ZeroLevel.Patterns.Queries
{
public class QueryResult
{
public bool Success { get; set; }
public string Reason { get; set; }
public long Count { get; set; }
public static QueryResult Result(long count = 0)
{
return new QueryResult
{
Count = count,
Success = true
};
}
public static QueryResult Fault(string reason)
{
return new QueryResult
{
Reason = reason,
Success = false
};
}
}
}

Powered by TurnKey Linux.