public ActionResult Delete(DeviceModel id) { string ret = ""; if (ModelState.IsValid) { try { // ret = EMC.EmployeeInsert(ins, IsActive); ret = dc.DeviceDelete(id); } catch (Exception err) { ret = err.Message; return(Json(new { result = ret })); } } return(Json(new { result = ret })); }