public void Update(AboutModel model)
 {
     var dbModel = _unitOfWork.AboutRepository.Query().FirstOrDefault(s => s.Id == 1);
     dbModel.ContentTW = model.ContentTW;
     dbModel.ContentEN = model.ContentEN;
     dbModel.ContentCN = model.ContentCN;
     _unitOfWork.Commit();
 }
 public Rental.Service.domain.AboutModel GetHotelAbout()
 {
     var hotel = _unitOfWork.AboutRepository.Query().FirstOrDefault(s => s.Id == 1);
     var viewModel = new AboutModel()
     {
         ContentCN = hotel.ContentCN,
         ContentEN = hotel.ContentEN,
         ContentTW = hotel.ContentTW,
         Id = hotel.Id
     };
     return viewModel;
 }
 public ActionResult Create(AboutModel model)
 {
     aboutSer.Update(model);
     return RedirectToAction("Create");
 }
 public ActionResult Create(AboutModel model)
 {
     return RedirectToAction("Create");
 }
 public ActionResult Create(AboutModel model)
 {
 }