title: Adding Data Annotation Attribute Error to object error List
body: <p>I have the following code:</p>
  
  <pre><code> public class WebSiteCloneEditModel
  {               
      public WebSiteCloneEditModel()
      {
          FromWebsiteId = 0;
          Code = "";
          Name = "";
          Domain = "";
      }
  
      [Range(1, double.MaxValue, ErrorMessage = "Website is Required")]
      [Display(Name = "Choose website to clone:")]
      public int FromWebsiteId { get; set; }
  
      [Display(Name = "Code")]
      public string Code { get; set; }
  
      [Display(Name = "Name")]
      public string Name { get; set; }
  
      [Display(Name = "Domain")]
      public string Domain { get; set; }
  
      public ErrorManagement ErrorLists
      {
          get { return UnitOfWork.Instance.GetLastError(); }
      }
  
  }
  </code></pre>
  
  <p>and the following method in Controller :</p>
  
  <pre><code> public JsonResult ExecuteClone(WebSiteCloneEditModel cloneModel)
      {
          if (ModelState.IsValid)
          {
              //redirect to new website
              var result = WebsiteExtension.CloneWebSiteFrom(cloneModel);
              if (result &gt; 0)
              {
                  return Json(JsonResponse.Get(new { url = "/Admin/Websites/Edit/" + result }, message: "Success", responsecode: ResponseCode.Success, description: "Clone is created"));
  
              }
              else
              {
                  return Json(JsonResponse.Get(new { url = "/Admin/Websites" }, message: "Error", responsecode: ResponseCode.Success, description: "Clone is faild"));
              }
          }
          else
          {
              return Json(JsonResponse.Get(message: "Error", responsecode: ResponseCode.Error, response: cloneModel.ErrorLists));
          }
      }
  </code></pre>
  
  <p>For the case when ModelState is not Valid I send object Error List in Json.
  How to Ad that error from Range Attribute in model to his Error list ?
  I suppose this could be done somehow inside the model.</p>
  
  <p>Please,advice!</p>