Пример #1
0
 /// <summary>
 /// From form data to item data.
 /// </summary>
 /// <param name="formData">Step form data to convert</param>
 /// <returns>the result item data.</returns>
 public static StepItemData ToItemData(this ManageStepFormData formData)
 {
     return(new StepItemData
     {
         StepDate = formData.StepDate.StringToDateTime(),
         StepId = formData.StepId
     });
 }
Пример #2
0
 /// <summary>
 /// From step form data to request data.
 /// </summary>
 /// <param name="formData">the step form data to convert.</param>
 /// <returns>step request result.</returns>
 public static StepRequestData ToRequestData(this ManageStepFormData formData)
 {
     return(new StepRequestData
     {
         FindStepDto = FindStepItemData.StepId,
         StepDto = formData.ToItemData()
     });
 }