public static BaseSizeModel ToBaseSize(this Size size)
        {
            BaseSizeModel _result = new BaseSizeModel();

            _result.Id           = size.Id;
            _result.Size1        = size.Size1;
            _result.Narration    = size.Narration;
            _result.CreatedDate  = size.CreatedDate;
            _result.ModifiedDate = size.ModifiedDate;
            return(_result);
        }
        public static Size ToSize(this BaseSizeModel size)
        {
            Size _result = new Size();

            if (size.Id.HasValue)
            {
                _result.Id = size.Id.GetValueOrDefault();
            }
            _result.Size1        = size.Size1;
            _result.Narration    = size.Narration;
            _result.CreatedDate  = size.CreatedDate;
            _result.ModifiedDate = size.ModifiedDate;
            return(_result);
        }