﻿using MvcApplication1.repos;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Web;

namespace MvcApplication1.Models
{
    public class ResentsComentsModel
    {
        public ResentsComentsModel(ICollection<string> CommentsBoddy1, ICollection<string> CommentsUserName1, ICollection<string> CommentsDatecreated1, ICollection<string> PostID1)
        {
            CommentsBoddy.Clear();
            CommentsDateCreated.Clear();
            CommentsUserName.Clear();
            PostID.Clear();
            foreach (var item in CommentsBoddy1)
            {
                CommentsBoddy.Add(item);
            }
            foreach (var item in CommentsUserName1)
            {
                CommentsUserName.Add(item);
            }
            foreach (var item in CommentsDatecreated1)
            {
                CommentsDateCreated.Add(item);
            }
            foreach (var item in PostID1)
            {
                PostID.Add(item);
            }
        }
        public ICollection<string> CommentsBoddy
        {
            get
            {
                return Addreposit.CommentBoddy;
            }
        }
        public ICollection<string> CommentsUserName
        {
            get
            {
                return Addreposit.CommentUserName;
            }
        }
        public ICollection<string> CommentsDateCreated
        {
            get
            {
                return Addreposit.CommentDateCreated;
            }
        }
        public ICollection<string> PostID
        {
            get
            {
                return Addreposit.PostIDComment;
            }
        }
    }
}