Esempio n. 1
0
        public static PatientFormDto MapToDto(PatientForm classMapFrom)
        {
            PatientFormDto retval = null;

            if (classMapFrom != null)
            {
                retval = new PatientFormDto
                {
                    Id           = classMapFrom.PatientFormId,
                    PatientId    = classMapFrom.PatientId,
                    FormTypeId   = classMapFrom.FormTypeId,
                    FormTypeName = classMapFrom.FormType.FormTypeName,
                    FormDate     = classMapFrom.FormDate
                };
            }
            return(retval);
        }
Esempio n. 2
0
        public static PatientForm MapFromDto(PatientFormDto classMapFrom)
        {
            PatientForm retval = null;

            if (classMapFrom != null)
            {
                retval = new PatientForm
                {
                    PatientFormId = classMapFrom.Id,
                    PatientId     = classMapFrom.PatientId,
                    FormTypeId    = classMapFrom.FormTypeId,
                    FormDate      = classMapFrom.FormDate,
                    LastUpdatedOn = DateTime.Now
                };
            }
            return(retval);
        }