public void deleteLibrary(LibrariesModel model, Guid ticket) { DataCommandService.IDataCommandService dataCommandService = new DataCommandService.DataCommandServiceClient(); DataCommandService.DeleteRequest library = new DataCommandService.DeleteRequest(); library.Id = model.Id; library.Ticket = ticket; try { dataCommandService.DeleteLibraries(library); } catch (Exception ex) { } }
public void addLibrary(LibrariesModel model, Guid ticket) { DataCommandService.IDataCommandService dataCommandService = new DataCommandService.DataCommandServiceClient(); DataCommandService.AddLibraryRequest library = new DataCommandService.AddLibraryRequest(); library.Name = model.Name; library.OpeningHours = model.OpeningHours; library.AdditionalInfo = model.AdditionalInfo; library.Address = model.Address; library.Ticket = ticket; try { dataCommandService.AddLibrary(library); } catch (Exception ex) { } }
public void editLibrary(LibrariesModel model, Guid ticket) { DataCommandService.IDataCommandService dataCommandService = new DataCommandService.DataCommandServiceClient(); DataCommandService.LibraryInfo library = new DataCommandService.LibraryInfo(); library.Name = model.Name; library.OpeningHours = model.OpeningHours; library.AdditionalInfo = model.AdditionalInfo; library.Address = model.Address; library.Id = model.Id; library.UserId = model.UserId; try { dataCommandService.EditLibraries(library, ticket); } catch (Exception ex) { } }