private void SentVisitRequestNotification(RequestVisitRequest request) { using (var session = _businessSafeSessionManager.Session) { _visitRequestService.SendVisitRequestedEmail(request); _businessSafeSessionManager.CloseSession(); } }
public void SendVisitRequestedEmail(RequestVisitRequest request) { SendVisitRequestedEmail email = new SendVisitRequestedEmail(); email.CompanyName = request.CompanyName; email.CAN = request.CAN; email.ContactName = request.ContactName; email.ContactEmail = request.ContactEmail; email.ContactPhone = request.ContactPhone; email.DateTo = request.DateTo; email.DateFrom = request.DateFrom; email.RequestTime = request.RequestTime; email.Comments = request.Comments; email.SiteName = request.SiteName; email.Postcode = request.Postcode; _bus.Send( email ); }