Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
     }
 }