public ActionResult Delete(string id) { try { ServiciosMantenimientoModels Model = new ServiciosMantenimientoModels(); _ServicioMantenimiento_Datos Datos = new _ServicioMantenimiento_Datos(); Model.Conexion = Conexion; Model.Usuario = User.Identity.Name; Model.IDServicio = id; Datos.EliminarServicio(Model); if (Model.Completado) { return(Json("true")); } else { throw new Exception("Error"); } } catch { return(Json("false")); } }