public static LogObject ConvertToLogObject(MSLogObject mslo) { LogObject lo = new LogObject(); lo.Id = mslo.id; lo.Who = mslo.who; lo.When = mslo.when; lo.What = mslo.what; lo.Verb = mslo.verb; return lo; }
public static LogObject ConvertToLogObject(MSLogObject mslo) { LogObject lo = new LogObject(); lo.Id = mslo.id; lo.Who = mslo.who; lo.When = mslo.when; lo.What = mslo.what; lo.Verb = mslo.verb; return(lo); }
public async Task <bool> AddLogObjectAsync(LogObject log) { MSLogObject msno = LogObject.ConvertToMSLogObject(log); msno.spot_id = this.Id; try { await App.MobileService.GetTable <MSLogObject>().InsertAsync(msno); return(true); } catch { return(false); } }