Example #1
0
 public void Update(ArrivalModel model)
 {
     var dbModel = _unitOfWork.ArrivalRepository.Query().FirstOrDefault(s => s.Id == 1);
     dbModel.ContentTW = model.ContentTW;
     dbModel.ContentEN = model.ContentEN;
     dbModel.ContentCN = model.ContentCN;
     _unitOfWork.Commit();
 }
Example #2
0
 public Rental.Service.domain.ArrivalModel GetHotelAbout()
 {
     var hotel = _unitOfWork.ArrivalRepository.Query().FirstOrDefault(s => s.Id == 1);
     var viewModel = new ArrivalModel()
     {
         ContentCN = hotel.ContentCN,
         ContentEN = hotel.ContentEN,
         ContentTW = hotel.ContentTW,
         Id = hotel.Id
     };
     return viewModel;
 }
 public ActionResult Create(ArrivalModel model)
 {
     arrivalSer.Update(model);
     return RedirectToAction("Create");
 }