Пример #1
0
            public async Task Handle()
            {   //create call
                //create history
                //prepare pdf
                //send email to customer
                try
                {
                    await _repository.Create <ServiceCall>(_call);

                    await _repository.Create <ServiceCallHistory>(new ServiceCallHistory { });

                    await _unitOfWork.SaveChangesAsync();

                    var objPdf = await _featureModule.GetPdfModule().GetPdfConfirm().GeneratePdf(new Feature.Pdf.SCConfirm.SCConfirmModel {
                    });

                    await _featureModule.GetEmailService().SendEmail();
                }
                catch (System.Exception ex)
                {
                }
            }
Пример #2
0
            public async Task Handle()
            {
                //update call
                //create history
                //send mail to cutomer regarding close and ask for feedback link
                try
                {
                    await _repository.Update <ServiceCall>(_call);

                    await _repository.Create <ServiceCallHistory>(new ServiceCallHistory { });

                    await _unitOfWork.SaveChangesAsync();

                    var objPdf = await _featureModule.GetPdfModule().GetPdfInvoice().GeneratePdf(new Feature.Pdf.SCInvoice.SCInvoiceModel {
                    });

                    await _featureModule.GetEmailService().SendEmail();
                }
                catch (System.Exception ex)
                {
                }
            }