public getArticleBySerialNumber GetSingleArticle(int serial) { getArticleBySerialNumber article = new getArticleBySerialNumber(); getArticleBySerial_Result temp = new getArticleBySerial_Result(); using (var data = db.getArticleBySerial(serial)) { temp = data.FirstOrDefault <getArticleBySerial_Result>(); article.title = temp.title; article.url = temp.url; article.summary = temp.summary; article.serial_no = temp.serial_no; article.photo_url = temp.photo_url; article.modified_date = temp.modified_date; article.a_id = temp.a_id; article.category = temp.category; article.custom = temp.custom; article.site_url = temp.site_url; article.status = temp.status; article.sub_category = temp.sub_category; article.site_name = getSiteName(article.site_url); } return(article); }