public static bool CrearAlerta(string email, string comentarios, double longitud, double latitude) { try { EcolectModelDataContext ecolectEntities = new EcolectModelDataContext(); Alerta nuevaAlerta = new Alerta { email = email, comentarios = comentarios, longitud = longitud, latitud = latitude, estado = 0 }; ecolectEntities.Alertas.InsertOnSubmit(nuevaAlerta); ecolectEntities.SubmitChanges(); return true; } catch (Exception ex) { return false; } }
partial void DeleteAlerta(Alerta instance);
partial void UpdateAlerta(Alerta instance);
partial void InsertAlerta(Alerta instance);