Exemple #1
0
        public ActionResult Edit(DeviceModel ins)
        {
            string ret = "";

            ins.UserLastMaintenance = Session["IDUser"].ToString();

            // ins.SiteCode = Session["IDSite"].ToString();
            if (ModelState.IsValid)
            {
                try
                {
                    // ret = EMC.EmployeeInsert(ins, IsActive);
                    ret = dc.DeviceUpdate(ins);
                }
                catch (Exception err)
                {
                    ret = err.Message;
                    return(Json(new { result = ret }));
                }
            }
            return(Json(new { result = ret }));
        }