예제 #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);
        }
예제 #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);
        }