public static FormExternalSubmitValues MapModelToExternalFormSubmitValue(SubmitFormFieldModel model) { return(new FormExternalSubmitValues() { Date = DateTime.Now, FormFieldId = model.FormFieldId, FormId = model.FormId, Value = model.Value }); }
public static FormSubmitValues MapModelToFormSubmitValue(SubmitFormFieldModel model, int userId, int clubId) { return(new FormSubmitValues() { ClubId = clubId, UserId = userId, Value = model.Value, Id = model.Id, FormId = model.FormId, FormFieldId = model.FormFieldId }); }