Ejemplo n.º 1
0
 /// <summary>
 /// Create the model action context using existing errors or message collection.
 /// If empty, a default instance will be created.
 /// </summary>
 /// <param name="errors">Error collection</param>
 /// <param name="messages">Message collection</param>
 public ActionContext(object item)
 {
     Item     = item;
     Errors   = new ValidationResults();
     Messages = new StatusResults();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create the model action context using existing errors or message collection.
 /// If empty, a default instance will be created.
 /// </summary>
 /// <param name="errors">Error collection</param>
 /// <param name="messages">Message collection</param>
 public ActionContext()
 {
     Errors   = new ValidationResults();
     Messages = new StatusResults();
 }