public ActionResult AddUserDetail(AppUserDetail userDetail, string userID) { AppUser user = auRep.Find(Convert.ToInt32(userID)); userDetail.AppUser = user; audRep.Add(userDetail); return(RedirectToAction("UserDetailList")); }
public ActionResult DeleteUser(int id) { _uRep.Delete(_uRep.Find(id)); _upRep.Delete(_upRep.Find(id)); return(RedirectToAction("UserList", "User", new { Area = "Panel" })); }
public ActionResult Edit(Guid id) { AppUser orjinalUser = userRepo.Find(id); if (orjinalUser != null) { return(View(orjinalUser)); } else { TempData["HataMesaji"] = "Kullanıcı Bulunamadı"; return(RedirectToAction("Index", "Appuser", new { area = "Admin" })); } }
// GET: Manager/AppUser public ActionResult ShipperByID(int id) { AppUserVM avm = new AppUserVM { AppUser = aRep.Find(id) }; return(View(avm)); }
private void dgvKullanici_Click(object sender, EventArgs e) { if (dgvKullanici.SelectedRows.Count > 0) { int id = Convert.ToInt32(dgvKullanici.SelectedRows[0].Cells["ID"].Value); user = userRep.Find(id); txtkullaniciadi.Text = user.UserName; txtkullanicisifresi.Text = Crypto.SifreCoz(user.Password); txtMail.Text = user.Email; } }
public ActionResult UpdateAppUser(int id) { return(View(aurep.Find(id))); }