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()); }
public IActionResult CheckMasterKey( [FromBody, Bind("MasterKey")] ListMasterKeyModel model) => Ok();