public HomeController(ILogger <HomeController> logger, KinhNghiemDuLichService kinhNghiemDuLichService, LienHeService lienHeService, TinTucService tinTucService, TourService tourService) { _logger = logger; this._kinhNghiemDuLichService = kinhNghiemDuLichService; this._lienHeService = lienHeService; this._tinTucService = tinTucService; this._tourService = tourService; }
public ActionResult ThemLienHe() { LienHe lienHe = new LienHe(); lienHe.NoiDung = Request.Form["noidung"]; lienHe.HoTen = Request.Form["tennguoidung"]; lienHe.SoDienThoai = Request.Form["sodienthoai"]; LienHeService lienHeService = new LienHeService(); lienHeService.ThemLienHe(lienHe); return(RedirectToAction("Index", "LienHe")); }
public AdminController(YourTourContext db, IHostingEnvironment hostingEnvironment, TravelService travelService, StaffService staffService, LocationService locationService, CommonService commonService, AdminService adminService, TourService tourService, HoaDonService hoaDonService, LienHeService lienHeService) { this._db = db; this._hostingEnvironment = hostingEnvironment; this._travelService = travelService; this._staffService = staffService; this._locationService = locationService; this._commonService = commonService; this._adminService = adminService; this._tourService = tourService; this._hoaDonService = hoaDonService; this._lienHeService = lienHeService; }