예제 #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");
        }
예제 #2
0
 public ActionResult Add(UserDataRow row)
 {
     database.UserDataRows.Add(row);
     database.SaveChanges();
     return Content("Data Saved");
 }