public async Task <ActionResult> Edit(notificationTable notificationTable) { if (ModelState.IsValid) { await MobileService.GetTable <notificationTable>().UpdateAsync(notificationTable); return(RedirectToAction("Index")); } return(View(notificationTable)); }
public async Task <ActionResult> Create(notificationTable notificationTable) { if (ModelState.IsValid) { //db.notificationTables.Add(notificationTable); //db.SaveChanges(); var table = MobileService.GetTable <notificationTable>(); await table.InsertAsync(notificationTable); return(RedirectToAction("Index")); } return(View(notificationTable)); }