public ActionResult AddUserDetail(AppUserDetail userDetail, string userID)
        {
            AppUser user = auRep.Find(Convert.ToInt32(userID));

            userDetail.AppUser = user;
            audRep.Add(userDetail);
            return(RedirectToAction("UserDetailList"));
        }
示例#2
0
        public ActionResult DeleteUser(int id)
        {
            _uRep.Delete(_uRep.Find(id));
            _upRep.Delete(_upRep.Find(id));



            return(RedirectToAction("UserList", "User", new { Area = "Panel" }));
        }
示例#3
0
        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" }));
            }
        }
示例#4
0
        // GET: Manager/AppUser
        public ActionResult ShipperByID(int id)
        {
            AppUserVM avm = new AppUserVM
            {
                AppUser = aRep.Find(id)
            };

            return(View(avm));
        }
示例#5
0
 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)));
 }