public static void MappingCTPP(this ChiTietPhieuPhatDTO ctppDTO, ChiTietPhieuPhat ctpp) { ctpp.MaPP = ctppDTO.MaPP; ctpp.MaSach = ctppDTO.MaSach; ctpp.NoiDungViPham = ctppDTO.NoiDungViPham; ctpp.XuLyViPham = ctppDTO.XuLyViPham; ctpp.PhiPhat = ctppDTO.PhiPhat; }
public static ChiTietPhieuPhatDTO MappingDTO(this ChiTietPhieuPhat ctpp) { return(new ChiTietPhieuPhatDTO { MaPP = ctpp.MaPP, MaSach = ctpp.MaSach, NoiDungViPham = ctpp.NoiDungViPham, XuLyViPham = ctpp.XuLyViPham, PhiPhat = ctpp.PhiPhat }); }