コード例 #1
0
        public void DeleteServiceToCompanies(int idCallsServices)
        {
            var serviceCalls = new ServiceCalls(idCallsServices);

            ServiceCallsDataServices.Instance.DeleteServiceCall(serviceCalls.MapTo(new ServiceCall()));
        }
コード例 #2
0
        public IEnumerable <ServiceCalls> GetServiceCallsBetweenDate(DateTime dateOpenCalls)
        {
            var serviceCalls       = new ServiceCalls(dateOpenCalls);
            var serviceToCompanies = ServiceCallsDataServices.Instance.GetServiceCallsBetweenDate(serviceCalls.MapTo(new ServiceCall()));

            return(serviceToCompanies.Select(serivceToCompanie => serivceToCompanie.MapTo(new ServiceCalls())).ToList());

            /*serivceToCompanie.Company.companyName, serivceToCompanie.Priority.TypePriority,
             * serivceToCompanie.idCallsServices, serivceToCompanie.dateOpenCalls, serivceToCompanie.discriptions, serivceToCompanie.idCompany,
             * serivceToCompanie.idPriority)).ToList();*/
        }
コード例 #3
0
        public void UpdateServiceCalls(string discriptions, int idServiceCalls, string status)
        {
            var serviceCalls = new ServiceCalls(discriptions, idServiceCalls, status);

            ServiceCallsDataServices.Instance.UpdateServiceCall(serviceCalls.MapTo(new ServiceCall()));
        }
コード例 #4
0
        public void InsertServiceCalls(DateTime dateOpenCalls, string discriptions, int idCompany, int idPriority, string status)
        {
            var serviceCalls = new ServiceCalls(dateOpenCalls, discriptions, idCompany, idPriority, status);

            ServiceCallsDataServices.Instance.InsertServiceCall(serviceCalls.MapTo(new ServiceCall()));
        }