public string LayChiTietSanPham() { MULTIMEDIA mul = db.MULTIMEDIAs.SingleOrDefault(item => item.MaCTSP == MaCTSP); string filePath = mul.Multimedia1; filePath = HttpContext.Current.Server.MapPath(mul.Multimedia1); return(filePath); }
public string LayChiTietSanPham() { CHITIETSANPHAM ctSp = db.CHITIETSANPHAMs.Single(r => r.MaSP == MaSP); MULTIMEDIA mul = db.MULTIMEDIAs.Single(item => item.MaCTSP == ctSp.MaCTSP); string filePath = mul.Multimedia1; filePath = HttpContext.Current.Server.MapPath(mul.Multimedia1); return(filePath); }