public void Update(About model) { var dbModel = _unitOfWork.AboutRepository.Query().FirstOrDefault(s => s.Id == 1); dbModel.ContentTW = model.ContentTW; dbModel.ContentEN = model.ContentEN; dbModel.ContentCN = model.ContentCN; }
public void Update(About model) { var dbModel = new Rental.Model.Model.About(); if(model!=null) { } }
public Rental.Service.domain.About GetHotelAbout() { var hotel = _unitOfWork.AboutRepository.Query().FirstOrDefault(s => s.Id == 1); var viewModel = new About() { } }
public Rental.Service.domain.About GetHotelAbout() { var hotel = _unitOfWork.AboutRepository.Query().FirstOrDefault(s => s.Id == 1); var viewModel = new About() { ContentCN = hotel.ContentCN, ContentEN = hotel.ContentEN, ContentTW = hotel.ContentTW, Id = hotel.Id }; return viewModel; }
public void Update(About model) { }
public void Update(About model) { var dbModel = new Rental.Model.Model.About(); }