private bool Unsubscribe() { up.status = false; PostAroundServiceClient client = new PostAroundServiceClient(); int response = client.SetUserPermission(up); client.Close(); if (response == 0) return true; return false; }
private void SetUserEmailPemission(int userId) { UserPermission up = new UserPermission(); up.date = DateTime.Now.Date; up.permissionId = (int)Enums.Permissions.EmailPermission; up.status = true; up.userId = userId; PostAroundServiceClient client = new PostAroundServiceClient(); int response = client.SetUserPermission(up); client.Close(); }