public void Create(VersionAndroid.Models.Android android) { try { if (android == null) { throw new Exception(); } AndroidTable droid = AndroidToDAOAndroid(android); database.Insert(droid); } catch (Exception) { } }
//Object Conversion "VersionAndroid.Models.Android" in "AndroidTable" private Models.AndroidTable AndroidToDAOAndroid(VersionAndroid.Models.Android android) { AndroidTable droid = null; try { droid = new AndroidTable(); droid.FullName = android.FullName; droid.Id = android.Id; droid.Name = android.Name; droid.ReleaseDate = android.ReleaseDate; droid.Version = android.Version; droid.WhatsNew = JsonConvert.SerializeObject(android.WhatsNew); } catch (Exception) { } return(droid); }