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(); }
public ActionResult Insert(InsertContentRequest request) { contentrepository.Insert(request); return(View(contentrepository.All())); }