示例#1
0
 public ActionResult Create(IdentifierCollection collection)
 {
     try
     {
         if (ModelState.IsValid)
         {
             collection.DocumentType = "IdentifierType";
             _identifierContext.Create(collection);
         }
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }