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); }
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); }