public async Task <ActionResult <Todo> > DeleteOne(int id) { try { Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>(); return(Ok(_cservice.DeleteOne(id, userInfo.Id))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }