Example #1
0
 public void UpdatePageContent(SectionContent content)
 {
     _repository.Update(Mapper.Map<PageContentEntity>(content));
     _repository.SaveChanges();
 }
Example #2
0
 public SectionContent CreateNewContent(SectionContent content)
 {
     var results = _repository.Add(Mapper.Map<PageContentEntity>(content));
     _repository.SaveChanges();
     return Mapper.Map<SectionContent>(results);
 }