public async Task <User> Delete(User entity) { var result = Context.Remove <User>(entity); await Context.SaveChangesAsync(); return(result.Entity); }
public async Task <Post> Delete(Post entity) { var result = Context.Remove <Post>(entity); await Context.SaveChangesAsync(); return(result.Entity); }