Пример #1
0
 public IActionResult AddVideoPost(Videopost vp)
 {
     try
     {
         context.Videopost.Add(vp);
         context.SaveChanges();
         ViewBag.message = "Data inserted successfully";
     }
     catch
     {
         ViewBag.message = "Data not inserted some error occured";
     }
     return(View("AddVideoPost"));
 }
Пример #2
0
 public IActionResult signup(User u)
 {
     context.User.Add(u);
     context.SaveChanges();
     return(View());
 }