public bool Update(int id, AboutUs aboutUs) { AboutUs newContactUs = _aboutUsRepository.FindById(a => a.Id == id); newContactUs.Title = aboutUs.Title; newContactUs.ShortDescription = aboutUs.ShortDescription; newContactUs.LongDescription = aboutUs.LongDescription; newContactUs.RootUrl = aboutUs.RootUrl; newContactUs.FileExtention = aboutUs.FileExtention; newContactUs.FileName = aboutUs.FileName; _aboutUsRepository.Update(newContactUs); return(_aboutUsRepository.Save() > 0); }
public int UpdateAboutUs(BLModel.About aboutUs) { return(_aboutUsRepository.Update((DLModel.About) new DLModel.About().InjectFrom(aboutUs))); }