public async Task <bool> DeleteMember(int Id) { var entity = await GetMember(Id); _context.Zsysuser.Remove(entity); return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> CreateNewMember(ZSysUser member) { _context.Zsysuser.Add(member); return(await _context.SaveChangesAsync() > 0); }