public static void AddUser(User user) { using (var randomizerService = new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress)) { randomizerService.AddUser(user); randomizerService.Close(); } }
public static void ChangeUserDate(Guid userGuid) { using (var randomizerService = new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress)) { randomizerService.ChangeUserDate(userGuid); randomizerService.Close(); } }
public static List <Request> GetAllRequests(Guid userGuid) { using (var randomizerService = new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress)) { var requests = randomizerService.GetAllRequests(userGuid); randomizerService.Close(); return(requests.ToList()); } }
public static void AddRequest(Guid userGuid, Request request) { using (var randomizerService = new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress)) { randomizerService.AddRequest(userGuid, request); randomizerService.Close(); } }
public static IEnumerable <User> GetAllUsers() { using (var randomizerService = new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress)) { var users = randomizerService.GetAllUsers(); randomizerService.Close(); return(users); } }