示例#1
0
        public async Task <IHttpActionResult> DeleteUser(int userID)
        {
            var user = await db.Users.FirstOrDefaultAsync((u) => u.UserID == userID);

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

            await db.DeleteUser(userID);

            return(Ok());
        }