public string RecordAction(string naction, string ncompany, string ncountry, string ncity, string nsublocation, bool prescreened, string entity, DateTime datetime) { VisitLog vl = new VisitLog(); vl.Action = naction; vl.Company = ncompany; vl.Country= ncountry; vl.City= ncity; vl.Sublocation = nsublocation; vl.datestamp = datetime; vl.Prescreened = prescreened; vl.Entity = entity; try { db.VisitLogs.InsertOnSubmit(vl); db.SubmitChanges(); return "Success"; } catch (Exception e) { return "Failure: " + e.Message; } }
partial void DeleteVisitLog(VisitLog instance);
partial void UpdateVisitLog(VisitLog instance);
partial void InsertVisitLog(VisitLog instance);