public int AddDetail(HtmlNode node, int wordsID, string pos) { Detail detail = new Detail { WordID = wordsID, Pos = pos, Definition = (node != null) ? node.InnerText : "" }; return(detailRepo.InsertDetail(detail)); }
public void InsertDetail() { Detail detail = new Detail { Province_State = "State", Country_Region = "Country", Last_Update = new DateTime(2020, 04, 06, 11, 12, 23, 123), Latitude = 65.50815459m, Longitude = -151.39073869999999m, Confirmed = 1, Deaths = 2, Recovered = 3, Active = 4, }; _detailRepository.InsertDetail(detail); }