Ejemplo n.º 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
     });
 }
Ejemplo n.º 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()
     });
 }