Example #1
0
 public ActionResult Create()
 {
     var item = new RoleContract()
     {
         Id = Guid.NewGuid(),
         ApplicationId = Guid.Parse(ConfigurationManager.AppSettings["ApplicationId"])
     };
     return View(new RoleViewModel(item));
 }
Example #2
0
 public RoleViewModel(RoleContract contract)
 {
     RoleContract = contract;
 }