Beispiel #1
0
        public async Task <ActionResult> Edit(notificationTable notificationTable)
        {
            if (ModelState.IsValid)
            {
                await MobileService.GetTable <notificationTable>().UpdateAsync(notificationTable);

                return(RedirectToAction("Index"));
            }

            return(View(notificationTable));
        }
Beispiel #2
0
        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));
        }