public static TagsModel TagsModelEntityMapper(ta_blog_tags tentity) { var resultl = new TagsModel { tagid = tentity.tagid, tagname = tentity.tagname, //BlogTagsRel = BlogTagRelMapperList(tentity.ta_blog_tag_rel), }; return(resultl); }
public long Create(TagsModel tentity) { using (var scope = new TransactionScope()) { var NewRecord = new ta_blog_tags { tagname = tentity.tagname, }; _unitOfWork.TagsRepository.Insert(NewRecord); _unitOfWork.Save(); scope.Complete(); return(NewRecord.tagid); } }