public void deleteEvent(EventsModel model, Guid ticket)
        {
            DataCommandService.IDataCommandService dataCommandService = new DataCommandService.DataCommandServiceClient();
            DataCommandService.DeleteRequest       evnt = new DataCommandService.DeleteRequest();

            evnt.Id     = model.Id;
            evnt.Ticket = ticket;

            try
            {
                dataCommandService.DeleteEvents(evnt);
            }
            catch (Exception ex)
            { }
        }
        public void addEvent(EventsModel model, Guid ticket)
        {
            DataCommandService.IDataCommandService dataCommandService = new DataCommandService.DataCommandServiceClient();
            DataCommandService.AddEventRequest     evnt = new DataCommandService.AddEventRequest();

            evnt.Title            = model.title;
            evnt.Content          = model.content;
            evnt.Ticket           = ticket;
            evnt.DepartmentId     = model.selectedDepartmentId;
            evnt.Date             = model.date;
            evnt.NotificationDate = model.notificationDate;

            try
            {
                dataCommandService.AddEvent(evnt);
            }
            catch (Exception ex)
            { }
        }
        public void editEvent(EventsModel model, Guid ticket)
        {
            DataCommandService.IDataCommandService dataCommandService = new DataCommandService.DataCommandServiceClient();
            DataCommandService.EventInfo           evnt = new DataCommandService.EventInfo();

            DataQueryService.IDataQueryService dataQueryService = new DataQueryService.DataQueryServiceClient();
            var department = dataQueryService.GetDepartment(model.selectedDepartmentId, ticket);

            evnt.Title            = model.title;
            evnt.Content          = model.content;
            evnt.Date             = model.date.ToString();
            evnt.NotificationDate = model.notificationDate.ToString();
            evnt.UserId           = model.UserId;
            evnt.Id         = model.Id;
            evnt.Department = departInfoConventer(department);

            try
            {
                dataCommandService.EditEvents(evnt, ticket);
            }
            catch (Exception ex)
            { }
        }