public void Loginsert(string url, string method, string error, string innermgs) { try { using (aspccEntities db = new aspccEntities()) { db.InsertLog(error, url, method, innermgs); } } catch (Exception ex) { } }