Esempio n. 1
0
        private static SupportRequest CreateSupportRequestEntity(SupportModel activity)
        {
            var supportRequest = new SupportRequest();

            supportRequest.Email       = activity.Email;
            supportRequest.OrderNumber = Int32.Parse(activity.OrderNumber);
            supportRequest.Status      = SupportStatus.New;
            return(supportRequest);
        }
Esempio n. 2
0
        private static SupportRequestMessage CreateSupportRequestMessageEntity(SupportModel activity, SupportRequest supportRequest)
        {
            var newSupportId = supportRequest.SupportId;

            SupportRequestMessage supportRequestMessage = new SupportRequestMessage();

            supportRequestMessage.MessageDate    = DateTime.Now;
            supportRequestMessage.SupportMessage = activity.Message;
            supportRequestMessage.SupportId      = newSupportId;
            return(supportRequestMessage);
        }