Exemplo n.º 1
0
        public ActionResult Delete(string username, string module)
        {
            UserDataRow row = new UserDataRow();
            row.UserName = username;
            row.ModuleName = module;

            database.UserDataRows.Remove(row);
            database.SaveChanges();
            return Content("Row Deleted");
        }
Exemplo n.º 2
0
 public ActionResult Add(UserDataRow row)
 {
     database.UserDataRows.Add(row);
     database.SaveChanges();
     return Content("Data Saved");
 }