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