public static ItemViewModel Map(Item src) { var dst = new ItemViewModel(); dst.Id = src.Id; dst.Name = src.Name; dst.Height = src.Height; dst.Length = src.Length; dst.Weight = src.Weight; dst.Width = src.Width; return dst; }
public static ItemViewModel Map(Item src) { return new ItemViewModel() { Id = src.Id, Name = src.Name, Height = src.Height, Length = src.Length, Weight = src.Weight, Width = src.Width }; }