public void Add(AdmProfileDto request) { var user = context .AdmProfileRepository .SingleOrDefault(x => x.Id == request.AdmProfileId); context.AdmProfileRepository.Update(user); context.Commit(); }
public void Add(ArticleDto request) { context.ArticleRepository.Add(Mapper.Map <ArticleDto, CmsArticle>(request)); context.Commit(); }
public void Add(AdmUserDto request) { context.AdmUserRepository.Add(Mapper.Map <AdmUserDto, AdmUser>(request)); context.Commit(); }
public void Add(PostDto request) { context.PostRepository.Add(Mapper.Map <PostDto, Post>(request)); context.Commit(); }
public void Add(SchemaDto request) { context.SchemaRepository.Add(Mapper.Map <SchemaDto, CmsSchema>(request)); context.Commit(); }
public void Add(WebUserDto request) { context.WebUserRepository.Add(Mapper.Map <WebUserDto, WebUser>(request)); context.Commit(); }