public async Task <IActionResult> Delete(Guid id) { var taskItem = await context.Get(id); if (taskItem == null) { return(NotFound()); } context.Remove(taskItem); await context.SaveChangesAsync(); return(Ok()); }