コード例 #1
0
        public IHttpActionResult DeleteUserAccount(int id)
        {
            UserAccount userAccount = _user.GetUserAccountByID(id);

            if (userAccount == null)
            {
                return(NotFound());
            }

            _user.DeleteUserAccount(id);

            return(Ok(userAccount));
        }
コード例 #2
0
        public IHttpActionResult DeleteUserAccount(int id)
        {
            var userAccount = db.DeleteUserAccount(id);

            return(Ok(userAccount));
        }