예제 #1
0
        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));
            }
        }