/// <summary> /// CreateResult Constructor. /// </summary> /// <param name="result">MbSpecificError with info about the operation.</param> public CreateResult(MbSpecificError result) : this(-1, result) { }
/// <summary> /// CreateResult Constructor. /// </summary> /// <param name="id">ID of the item created.</param> /// <param name="result">MbSpecificError with info about the operation.</param> public CreateResult(int id, MbSpecificError result) : this() { ID = id; MBResult = result; }
/// <summary> /// CreateResult Constructor. /// </summary> /// <param name="id">ID of the item created.</param> public CreateResult(int id) : this(id, MbSpecificError.NoError()) { }
/// <summary> /// GenericResult Constructor. /// </summary> /// <param name="result">MbSpecificError of the GenericResult. </param> public GenericResult(MbSpecificError result) : this() { MBResult = result; }
/// <summary> /// GenericResult Constructor Success case. /// </summary> /// <returns>GenericResult.</returns> public static GenericResult Success() { return(new GenericResult(MbSpecificError.NoError())); }
public BrowseResult(t[] items) : this(new List <t>(items), MbSpecificError.NoError()) { }
/// <summary> /// BrowseResult Constructor. /// </summary> /// <param name="result">MbSpecificError with info about the operation.</param> public BrowseResult(MbSpecificError result) : this(null, result) { }
/// <summary> /// BrowseResult Constructor. /// </summary> /// <param name="items">Object Collection.</param> public BrowseResult(List <t> items) : this(items, MbSpecificError.NoError()) { }
public BrowseResult(List <t> items, MbSpecificError result) : this() { Items = items; MBResult = result; }
/// <summary> /// CreateResult Constructor. /// </summary> /// <param name="result">MbSpecificError with info about the operation.</param> public SimpleResult(MbSpecificError result) : this(default(T), result) { }
public SimpleResult(T item) : this(item, MbSpecificError.NoError()) { }
public SimpleResult(T item, MbSpecificError result) : this() { Item = item; MBResult = result; }