public ActionResult Create(FormCollection collection) { try { string Name = collection["Name"]; roleDAO.Create(Name); return(RedirectToAction("Index")); } catch { return(View("Error")); } }
public void Create(Role role) { RoleDAO roleDAO = new RoleDAO(); roleDAO.Create(TABLE, role.AssembleDictionary()); }
public int Create(Role role) { return(_roledao.Create(role)); }