示例#1
0
        public async Task <User> Delete(User entity)
        {
            var result = Context.Remove <User>(entity);
            await Context.SaveChangesAsync();

            return(result.Entity);
        }
示例#2
0
        public async Task <Post> Delete(Post entity)
        {
            var result = Context.Remove <Post>(entity);
            await Context.SaveChangesAsync();

            return(result.Entity);
        }