public List <PhieuNhap_DTO> Search(PhieuNhap_DTO a) { var pmh = DB.PhieuNhapSearch(a.SoPhieuNhap, a.NgayLap, a.TongTien); var MyQuery = (from mh in pmh select new PhieuNhap_DTO { SoPhieuNhap = mh.SoPhieuNhap, NgayLap = mh.NgayLap.ToString(), TongTien = mh.TongTien ?? default(decimal) }); return(MyQuery.ToList()); }