示例#1
0
        public IActionResult CreateCategories()
        {
            var category = new categories()
            {
                name = "caaat"
            };

            webNotesContext.Add(category);
            webNotesContext.SaveChanges();

            return(Ok("OK"));
        }
 public void Save()
 {
     context.SaveChanges();
 }