Example #1
0
        public void Insert(InsertContentRequest request)
        {
            CONTENTS content = new CONTENTS()
            {
                CATEGORIID  = request.CategoriId,
                CONTENTTEXT = request.ContentText,
                HEAD        = request.ContentHead,
                //CONTENTFILE=request.ContentFile
                INSERTDATE = DateTime.Now,
                STATUS     = 1,
                USERID     = 1
            };

            _context.CONTENTS.Add(content);
            _context.SaveChanges();
        }
Example #2
0
 public ActionResult Insert(InsertContentRequest request)
 {
     contentrepository.Insert(request);
     return(View(contentrepository.All()));
 }