public IEnumerable <get_Articles> PostFreezedArticles([FromBody] ArticleInput admin) { List <get_deleted_articles_Result> articleList = new List <get_deleted_articles_Result>(); List <get_Articles> finalArticleList = new List <get_Articles>(); using (var articles = db.get_deleted_articles(admin.email, admin.site_url)) { articleList = articles.ToList <get_deleted_articles_Result>(); } foreach (var item in articleList) { get_Articles post = new get_Articles(); post.serial_no = item.serial_no; post.a_id = item.a_id; post.title = item.title; post.site_url = item.site_url; post.site_name = getSiteName(post.site_url); post.status = false; post.photo_url = ""; post.modified_date = item.modified_date; post.category = item.category; post.url = item.url; post.summary = item.summary; post.custom = item.custom; post.sub_category = item.sub_category; post.shares = 0; post.views = "0"; finalArticleList.Add(post); } return(finalArticleList); }