public void SaveRecord(Record newRecord)
 {
     using (var dc = new EfRecordDbContext())
     {
         var entity = newRecord.ToEntity();
         dc.Records.Add(entity);
         dc.SaveChanges();
     }
 }
 public static Record ToModel(this DbRecord entity)
 {
     var result = new Record
                 {
                     FirstName = entity.FirstName,
                     LastName = entity.LastName,
                     Phone = entity.Phone,
                 };
     return result;
 }