public ActionResult Create(FormCollection collection)
 {
     try
     {
         string Name = collection["Name"];
         roleDAO.Create(Name);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View("Error"));
     }
 }
Пример #2
0
        public void Create(Role role)
        {
            RoleDAO roleDAO = new RoleDAO();

            roleDAO.Create(TABLE, role.AssembleDictionary());
        }
Пример #3
0
 public int Create(Role role)
 {
     return(_roledao.Create(role));
 }