public ActionResult Haber() { signEntities3 dbc = new signEntities3(); haberler k1 = new haberler(); k1.habers = dbc.haber.ToList(); return(View(k1)); }
public ActionResult register(FormCollection form) { signEntities3 db = new signEntities3(); Users model = new Users(); model.UserEmail = form["UserEmail"].Trim(); model.UserName = form["UserName"].Trim(); model.UserLastName = form["UserSurname"].Trim(); model.UserPassword = form["UserPassword"].Trim(); db.Users.Add(model); db.SaveChanges(); return(View()); }