public static Division ToDivision(this DivisionV1DTO item)
        {
            if (item == null)
            {
                throw new ArgumentException(nameof(item));
            }

            Division division = new Division();

            division.CopyFromDivisionV1DTO(item);
            return(division);
        }
        public static DivisionV1DTO ToDivisionV1DTO(this Division item)
        {
            if (item == null)
            {
                throw new ArgumentException(nameof(item));
            }

            DivisionV1DTO divisionV1DTO = new DivisionV1DTO();

            divisionV1DTO.CopyFromDivision(item);
            return(divisionV1DTO);
        }
 public static void CopyFromDivision(this DivisionV1DTO to, Division from)
 {
     to.DivisionId   = from.DivisionId;
     to.DivisionCode = from.DivisionCode;
     to.DivisionName = from.DivisionName;
 }