public ActionResult Create(FormCollection collection)
 {
     try
     {
         string Name = collection["Name"];
         roleDAO.Create(Name);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View("Error"));
     }
 }
Ejemplo n.º 2
0
        public void Create(Role role)
        {
            RoleDAO roleDAO = new RoleDAO();

            roleDAO.Create(TABLE, role.AssembleDictionary());
        }
Ejemplo n.º 3
0
 public int Create(Role role)
 {
     return(_roledao.Create(role));
 }