//todo:Login viewına ulaşmak için navbara link eklenmeli ex.Login public ActionResult KullanıcıUpdate(Guid?id) { using (TeknoDB db = new TeknoDB()) { AppUser appuser = db.AppUsers.Find(id); return(View(appuser)); } }
// GET: SubCategory public PartialViewResult Index() { using (TeknoDB db = new TeknoDB()) { var result = db.SubCategories.ToList(); return(PartialView(result)); } }
public ActionResult KullanıcıUpdate(AppUser appUser) { using (TeknoDB db = new TeknoDB()) { AppUser newappuser = db.AppUsers.Find(appUser.ID); newappuser.Name = appUser.Name; newappuser.Password = appUser.Password; newappuser.FirstName = appUser.FirstName; newappuser.LastName = appUser.LastName; newappuser.Email = appUser.Email; newappuser.PhoneNumber = appUser.PhoneNumber; newappuser.BirthDate = appUser.BirthDate; db.SaveChanges(); return(View()); } }