public void AddUserToGroup(int userGroupId, int userId)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         service.AddUserToGroup(userGroupId, userId);
     }
 }
 public void DeleteVote(int id)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         service.DeleteVote(id);
     }
 }
 public void AddProductToCategory(int categoryId, int productId)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         service.AddProductToCategory(categoryId, productId);
     }
 }
 public int GetAccountId(string username)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var accountId = service.GetAccountId(username);
         return accountId;
     }
 }
 public int Authenticate(string username, string password, bool remember)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var authenticateId = service.Authenticate(username, password, remember);
         return authenticateId;
     }
 }
 public void SaveMessage(MessageDTO message)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         service.SaveMessage(message);
     }
 }
 public Int32 SaveCategory(CategoryDTO category)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.SaveCategory(category);
     }
 }
 public void RemoveUserFromGroup(int userId)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         service.RemoveUserFromGroup(userId);
     }
 }
 public IEnumerable<UserGroupDTO> GetUserGroups()
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var ugs = service.GetUserGroups();
         return ugs;
     }
 }
 public IEnumerable<VotedProductDTO> GetProductsFromCategory(String username, int id)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var product = service.GetProductsFromCategory(username, id);
         return product;
     }
 }
 public void StartSession()
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         service.StartSession();
     }
 }
 public Int32 SaveUserGroup(UserGroupDTO userGroup)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.SaveUserGroup(userGroup);
     }
 }
 public IEnumerable<VotedProductDTO> GetVotes()
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var votes = service.GetVotes();
         return votes;
     }
 }
 public IEnumerable<VotedCategoryDTO> GetVotedCategories(String username)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.GetVotedCategories(username);
     }
 }
 public VoteDTO GetVote(int id)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var vote = service.GetVote(id);
         return vote;
     }
 }
 public AccountAvatarDTO GetUserStateInfo(int id)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var userInfo = service.GetUserStateInfo(id);
         return userInfo;
     }
 }
 public IEnumerable<UserDTO> GetUsersFromGroup(int id)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.GetUsersFromGroup(id);
     }
 }
 public IEnumerable<UserDTO> GetUsers()
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var us = service.GetUsers();
         return us;
     }
 }
 public ProductVoteReportChart GetProductVoteReport()
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.GetProductVoteReport();
     }
 }
 public Int32 SaveProduct(PricedProductDTO product)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.SaveProduct(product);
     }
 }
 public Int32 SaveUser(UserDTO user)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.SaveUser(user);
     }
 }
 public void RegisterOwner(string username, string password, string email)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         service.RegisterOwner(username, password, email);
     }
 }
 public Int32 SaveVote(VoteDTO vote)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.SaveVote(vote);
     }
 }
 public IEnumerable<AccountAvatarDTO> GetAccounts()
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var accounts = service.GetAccounts();
         return accounts;
     }
 }
 public Int32 Vote(String username, Int32 productId, Int32 points)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         return service.Vote(username, productId, points);
     }
 }
 public IEnumerable<ProductDTO> GetProducts()
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var products = service.GetProducts();
         return products;
     }
 }
 public void RegisterUser(string username, string password, string email)
 {
     DelightServiceClient service = new DelightServiceClient();
     service.RegisterUser(username, password, email);
     service.Close();
 }
 public UserGroupDTO GetUserGroup(int id)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var ug = service.GetUserGroup(id);
         return ug;
     }
 }
 public IEnumerable<ProductFromCategoryDTO> GetAllProductsCompareToSpecificCategory(int categoryId)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         var products = service.GetAllProductsCompareToSpecificCategory(categoryId);
         return products;
     }
 }
 public void RemoveProductFromCategory(int productId)
 {
     using (DelightServiceClient service = new DelightServiceClient())
     {
         service.RemoveProductFromCategory(productId);
     }
 }