Esempio n. 1
0
        public ActionResult Edit(CredentialItem model)
        {
            //    int Empid = Convert.ToInt32(Url.RequestContext.RouteData.Values["id"].ToString());
            //model.EmpID = Empid;
            CredentialService objAppoint = new CredentialService();

            objAppoint.Update(model);
            return(RedirectToAction("Create", new { @menuId = model.Viewbagidformenu }));
        }
Esempio n. 2
0
 private void dgvShed_CellEndEdit(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvShed.CurrentCell.Value != null)
     {
         CredentialService.Update((int)dgvShed.CurrentCell.Tag, dgvShed.CurrentCell.Value.ToString());
     }
     else
     {
         CredentialService.Update((int)dgvShed.CurrentCell.Tag, "");
     }
 }