Exemple #1
0
        public EmployeeAttachmentResponse Delete(Guid identifier)
        {
            EmployeeAttachmentResponse response = new EmployeeAttachmentResponse();

            try
            {
                response = WpfApiHandler.SendToApi <Guid, EmployeeAttachmentViewModel, EmployeeAttachmentResponse>(identifier, "Delete");
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
Exemple #2
0
        public EmployeeAttachmentListResponse Sync(SyncEmployeeAttachmentRequest request)
        {
            EmployeeAttachmentListResponse response = new EmployeeAttachmentListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncEmployeeAttachmentRequest, EmployeeAttachmentViewModel, EmployeeAttachmentListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
Exemple #3
0
        public EmployeeAttachmentListResponse CreateList(List <EmployeeAttachmentViewModel> EmployeeAttachment)
        {
            EmployeeAttachmentListResponse response = new EmployeeAttachmentListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <List <EmployeeAttachmentViewModel>, EmployeeAttachmentListResponse>(EmployeeAttachment, "CreateList");
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
        public PhysicalPersonAttachmentListResponse CreateList(List <PhysicalPersonAttachmentViewModel> PhysicalPersonAttachment)
        {
            PhysicalPersonAttachmentListResponse response = new PhysicalPersonAttachmentListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <List <PhysicalPersonAttachmentViewModel>, PhysicalPersonAttachmentListResponse>(PhysicalPersonAttachment, "CreateList");
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
        public PhysicalPersonAttachmentListResponse Sync(SyncPhysicalPersonAttachmentRequest request)
        {
            PhysicalPersonAttachmentListResponse response = new PhysicalPersonAttachmentListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncPhysicalPersonAttachmentRequest, PhysicalPersonAttachmentViewModel, PhysicalPersonAttachmentListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
        public CityResponse Create(CityViewModel cityViewModel)
        {
            CityResponse response = new CityResponse();

            try
            {
                response = WpfApiHandler.SendToApi <CityViewModel, CityResponse>(cityViewModel, "Create");
            }
            catch (Exception ex)
            {
                response.City    = new CityViewModel();
                response.Success = false;
                response.Message = ex.Message;
            }
            return(response);
        }
        public BusinessPartnerOrganizationUnitResponse Create(BusinessPartnerOrganizationUnitViewModel businessPartnerOrganizationUnitViewModel)
        {
            BusinessPartnerOrganizationUnitResponse response = new BusinessPartnerOrganizationUnitResponse();

            try
            {
                response = WpfApiHandler.SendToApi <BusinessPartnerOrganizationUnitViewModel, BusinessPartnerOrganizationUnitResponse>(businessPartnerOrganizationUnitViewModel, "Create");
            }
            catch (Exception ex)
            {
                response.BusinessPartnerOrganizationUnit = new BusinessPartnerOrganizationUnitViewModel();
                response.Success = false;
                response.Message = ex.Message;
            }
            return(response);
        }
        public EmployeeLicenceItemResponse Create(EmployeeLicenceItemViewModel EmployeeItemViewModel)
        {
            EmployeeLicenceItemResponse response = new EmployeeLicenceItemResponse();

            try
            {
                response = WpfApiHandler.SendToApi <EmployeeLicenceItemViewModel, EmployeeLicenceItemResponse>(EmployeeItemViewModel, "Create");
            }
            catch (Exception ex)
            {
                response.EmployeeLicenceItem = new EmployeeLicenceItemViewModel();
                response.Success             = false;
                response.Message             = ex.Message;
            }
            return(response);
        }
        public PhysicalPersonLicenceResponse Create(PhysicalPersonLicenceViewModel PhysicalPersonItemViewModel)
        {
            PhysicalPersonLicenceResponse response = new PhysicalPersonLicenceResponse();

            try
            {
                response = WpfApiHandler.SendToApi <PhysicalPersonLicenceViewModel, PhysicalPersonLicenceResponse>(PhysicalPersonItemViewModel, "Create");
            }
            catch (Exception ex)
            {
                response.PhysicalPersonLicence = new PhysicalPersonLicenceViewModel();
                response.Success = false;
                response.Message = ex.Message;
            }
            return(response);
        }
Exemple #10
0
        public ConstructionSiteCalculationResponse Create(ConstructionSiteCalculationViewModel ConstructionSiteCalculationViewModel)
        {
            ConstructionSiteCalculationResponse response = new ConstructionSiteCalculationResponse();

            try
            {
                response = WpfApiHandler.SendToApi <ConstructionSiteCalculationViewModel, ConstructionSiteCalculationResponse>(ConstructionSiteCalculationViewModel, "Create");
            }
            catch (Exception ex)
            {
                response.ConstructionSiteCalculation = new ConstructionSiteCalculationViewModel();
                response.Success = false;
                response.Message = ex.Message;
            }
            return(response);
        }
Exemple #11
0
        public CompanyListResponse Sync(SyncCompanyRequest request)
        {
            CompanyListResponse response = new CompanyListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncCompanyRequest, CompanyViewModel, CompanyListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
        public AgencyListResponse Sync(SyncAgencyRequest request)
        {
            AgencyListResponse response = new AgencyListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncAgencyRequest, AgencyViewModel, AgencyListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.Agencies = new List <AgencyViewModel>();
                response.Success  = false;
                response.Message  = ex.Message;
            }

            return(response);
        }
        public AgencyResponse Create(AgencyViewModel Agency)
        {
            AgencyResponse response = new AgencyResponse();

            try
            {
                response = WpfApiHandler.SendToApi <AgencyViewModel, AgencyResponse>(Agency, "Create");
            }
            catch (Exception ex)
            {
                response.Agency  = new AgencyViewModel();
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
        public ToDoStatusListResponse Sync(SyncToDoStatusRequest request)
        {
            ToDoStatusListResponse response = new ToDoStatusListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncToDoStatusRequest, ToDoStatusViewModel, ToDoStatusListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.ToDoStatuses = new List <ToDoStatusViewModel>();
                response.Success      = false;
                response.Message      = ex.Message;
            }

            return(response);
        }
        public ToDoStatusResponse Create(ToDoStatusViewModel ToDoStatus)
        {
            ToDoStatusResponse response = new ToDoStatusResponse();

            try
            {
                response = WpfApiHandler.SendToApi <ToDoStatusViewModel, ToDoStatusResponse>(ToDoStatus, "Create");
            }
            catch (Exception ex)
            {
                response.ToDoStatus = new ToDoStatusViewModel();
                response.Success    = false;
                response.Message    = ex.Message;
            }

            return(response);
        }
Exemple #16
0
        public DocumentFolderListResponse Sync(SyncDocumentFolderRequest request)
        {
            DocumentFolderListResponse response = new DocumentFolderListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncDocumentFolderRequest, List <DocumentFolderViewModel>, DocumentFolderListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.DocumentFolders = new List <DocumentFolderViewModel>();
                response.Success         = false;
                response.Message         = ex.Message;
            }

            return(response);
        }
        public LimitationListResponse Sync(SyncLimitationRequest request)
        {
            LimitationListResponse response = new LimitationListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncLimitationRequest, LimitationViewModel, LimitationListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.Limitations = new List <LimitationViewModel>();
                response.Success     = false;
                response.Message     = ex.Message;
            }

            return(response);
        }
Exemple #18
0
        public CompanyUserResponse Create(CompanyUserViewModel companyUser)
        {
            CompanyUserResponse response = new CompanyUserResponse();

            try
            {
                response = WpfApiHandler.SendToApi <CompanyUserViewModel, CompanyUserResponse>(companyUser, "Create");
            }
            catch (Exception ex)
            {
                response.CompanyUser = new CompanyUserViewModel();
                response.Success     = false;
                response.Message     = ex.Message;
            }

            return(response);
        }
Exemple #19
0
        public CalendarAssignmentListResponse Sync(SyncCalendarAssignmentRequest request)
        {
            CalendarAssignmentListResponse response = new CalendarAssignmentListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncCalendarAssignmentRequest, CalendarAssignmentViewModel, CalendarAssignmentListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.CalendarAssignments = new List <CalendarAssignmentViewModel>();
                response.Success             = false;
                response.Message             = ex.Message;
            }

            return(response);
        }
        public EmployeeLicenceItemListResponse Sync(SyncEmployeeLicenceItemRequest request)
        {
            EmployeeLicenceItemListResponse response = new EmployeeLicenceItemListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncEmployeeLicenceItemRequest, EmployeeLicenceItemViewModel, EmployeeLicenceItemListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.EmployeeLicenceItems = new List <EmployeeLicenceItemViewModel>();
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
Exemple #21
0
        public ConstructionSiteCalculationListResponse Sync(SyncConstructionSiteCalculationRequest request)
        {
            ConstructionSiteCalculationListResponse response = new ConstructionSiteCalculationListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncConstructionSiteCalculationRequest, ConstructionSiteCalculationViewModel, ConstructionSiteCalculationListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.ConstructionSiteCalculations = new List <ConstructionSiteCalculationViewModel>();
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
        public BusinessPartnerTypeResponse Create(BusinessPartnerTypeViewModel re)
        {
            BusinessPartnerTypeResponse response = new BusinessPartnerTypeResponse();

            try
            {
                response = WpfApiHandler.SendToApi <BusinessPartnerTypeViewModel, BusinessPartnerTypeResponse>(re, "Create");
            }
            catch (Exception ex)
            {
                response.BusinessPartnerType = new BusinessPartnerTypeViewModel();
                response.Success             = false;
                response.Message             = ex.Message;
            }

            return(response);
        }
        public PhysicalPersonResponse Delete(Guid identifier)
        {
            PhysicalPersonResponse response = new PhysicalPersonResponse();

            try
            {
                response = WpfApiHandler.SendToApi <Guid, PhysicalPersonViewModel, PhysicalPersonResponse>(identifier, "Delete");
            }
            catch (Exception ex)
            {
                response.PhysicalPerson = new PhysicalPersonViewModel();
                response.Success        = false;
                response.Message        = ex.Message;
            }

            return(response);
        }
Exemple #24
0
        public DocumentFolderResponse Delete(DocumentFolderViewModel toDelete)
        {
            DocumentFolderResponse response = new DocumentFolderResponse();

            try
            {
                response = WpfApiHandler.SendToApi <DocumentFolderViewModel, DocumentFolderResponse>(toDelete, "Delete");
            }
            catch (Exception ex)
            {
                response.DocumentFolder = new DocumentFolderViewModel();
                response.Success        = false;
                response.Message        = ex.Message;
            }

            return(response);
        }
        public BusinessPartnerInstitutionListResponse Sync(SyncBusinessPartnerInstitutionRequest request)
        {
            BusinessPartnerInstitutionListResponse response = new BusinessPartnerInstitutionListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <SyncBusinessPartnerInstitutionRequest, BusinessPartnerInstitutionViewModel, BusinessPartnerInstitutionListResponse>(request, "Sync");
            }
            catch (Exception ex)
            {
                response.BusinessPartnerInstitutions = new List <BusinessPartnerInstitutionViewModel>();
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
Exemple #26
0
        public DocumentFolderListResponse SubmitList(List <DocumentFolderViewModel> toCreate)
        {
            DocumentFolderListResponse response = new DocumentFolderListResponse();

            try
            {
                response = WpfApiHandler.SendToApi <List <DocumentFolderViewModel>, DocumentFolderListResponse>(toCreate, "SubmitList");
            }
            catch (Exception ex)
            {
                response.DocumentFolders = new List <DocumentFolderViewModel>();
                response.Success         = false;
                response.Message         = ex.Message;
            }

            return(response);
        }
Exemple #27
0
        public CalendarAssignmentResponse Create(CalendarAssignmentViewModel CalendarAssignment)
        {
            CalendarAssignmentResponse response = new CalendarAssignmentResponse();

            try
            {
                response = WpfApiHandler.SendToApi <CalendarAssignmentViewModel, CalendarAssignmentResponse>(CalendarAssignment, "Create");
            }
            catch (Exception ex)
            {
                response.CalendarAssignment = new CalendarAssignmentViewModel();
                response.Success            = false;
                response.Message            = ex.Message;
            }

            return(response);
        }
        public LimitationResponse Create(LimitationViewModel limitation)
        {
            LimitationResponse response = new LimitationResponse();

            try
            {
                response = WpfApiHandler.SendToApi <LimitationViewModel, LimitationResponse>(limitation, "Create");
            }
            catch (Exception ex)
            {
                response.Limitation = new LimitationViewModel();
                response.Success    = false;
                response.Message    = ex.Message;
            }

            return(response);
        }
        /// <summary>
        /// Update business partner
        /// </summary>
        /// <param name="Individual"></param>
        /// <returns></returns>
        public IndividualResponse Update(IndividualViewModel Individual)
        {
            IndividualResponse response = new IndividualResponse();

            try
            {
                response         = WpfApiHandler.SendToApi <IndividualViewModel, IndividualResponse>(Individual, "Update");
                response.Success = true;
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }

            return(response);
        }
Exemple #30
0
        public CalendarAssignmentResponse Delete(Guid identifier)
        {
            CalendarAssignmentResponse response = new CalendarAssignmentResponse();

            try
            {
                response = WpfApiHandler.SendToApi <Guid, CalendarAssignmentViewModel, CalendarAssignmentResponse>(identifier, "Delete");
            }
            catch (Exception ex)
            {
                response.CalendarAssignment = new CalendarAssignmentViewModel();
                response.Success            = false;
                response.Message            = ex.Message;
            }

            return(response);
        }