public static Report FlToReport(FallLocation fl) { DateTime enteredDate = DateTime.Parse(fl.Date); double[] latLog = bl.GetCoordinate(fl.Adress); Report r = new Report(); r.lat = latLog[0]; r.log = latLog[1]; r.Report_Adress = fl.Adress; r.Time = enteredDate; r.Report_Id = fl.ID; r.Boom_count = fl.NumberOfFalls; return(r); }