Esempio n. 1
0
        public async Task <IActionResult> DeleteList(
            [FromBody, Bind("MasterKey")] ListMasterKeyModel model)
        {
            var list = db.Lists.Find(CurrentListGUID);

            if (list == null)
            {
                return(NotFound(ErrorModel.NotFound()));
            }

            db.Lists.Remove(list);
            await db.SaveChangesAsync();

            return(Ok());
        }
Esempio n. 2
0
 public IActionResult CheckMasterKey(
     [FromBody, Bind("MasterKey")] ListMasterKeyModel model) =>
 Ok();