public async Task<ActionResult> NeedApproval()
        {
            return await Task.Run(() =>
            {
                var list = new NewsApprovalList();
                list.Message = "Select news and click on submit to approve.";

                list.ApprovalList = new List<NewsApproval>();

                var newsBL = new InterNewsBL();
                var result = newsBL.SelectToApprove();
                result.ToList().ForEach(v =>
                {
                    list.ApprovalList.Add(
                        new NewsApproval
                        {
                            Selected = false,
                            TopNewsID = v.NewsID,
                            ImageUrl = v.ImageUrl,
                            IsApproved = v.IsApproved,
                            IsTopNews = v.IsTopNews,
                            Heading = v.Heading,
                            DttmCreated = v.DttmCreated
                        });
                });

                return View(list);
            });
        }
        public async Task<ActionResult> NeedApproval(NewsApprovalList selectedNewsList)
        {
            return await Task.Run(() =>
            {
                var activeList = new NewsApprovalList();
                activeList.ApprovalList = new List<NewsApproval>();
                var selectedItem = selectedNewsList.ApprovalList.Where(t => t.Selected);

                if (selectedItem.Count() > 0)
                {
                    var list = new List<IInterNews>();
                    selectedItem.ToList().ForEach(item => list.Add(new InterNews()
                    {
                        NewsID = item.TopNewsID,
                        IsApproved = item.Selected ? 1 : 0
                    }));

                    var user = (IUsers)this.Session[Constants.UserSessionKey];
                    InterNewsBL.Instance.GiveApprovalFor(list, user);

                    InterNewsBL.Instance.SelectToApprove().ToList().ForEach(v =>
                    {
                        activeList.ApprovalList.Add(
                            new NewsApproval
                            {
                                Selected = false,
                                TopNewsID = v.NewsID,
                                IsApproved = v.IsApproved,
                                IsTopNews = v.IsTopNews,
                                Heading = v.Heading,
                                DttmCreated = v.DttmCreated
                            });
                    });
                    ModelState.Clear();

                    activeList.Message = selectedItem.Count().ToString() + " news has been approves successfuly.";
                }
                else
                {
                    activeList.Message = "Please select atleast one news to approve!";
                }

                return View(activeList);
            });
        }
        public async Task<ActionResult> NeedApproval(NewsApprovalList selectedNewsList)
        {
            return await Task.Run(() =>
            {
                var activeList = new NewsApprovalList();
                activeList.ApprovalList = new List<NewsApproval>();
                var selectedItem = selectedNewsList.ApprovalList.Where(t => t.Selected);

                if (selectedItem.Count() > 0)
                {
                    var list = new List<IStateNews>();
                    selectedItem.ToList().ForEach(item => list.Add(new StateNews()
                    {
                        NewsID = item.TopNewsID,
                        IsApproved = item.Selected ? 1 : 0
                       
                    }));

                    var user = (IUsers)this.Session[Constants.UserSessionKey];
                    StateNewsBL.Instance.GiveApprovalFor(list, user);

                    StateNewsBL.Instance.SelectToApprove().ToList().ForEach(v =>
                    {
                        activeList.ApprovalList.Add(
                            new NewsApproval
                            {
                                Selected = false,
                                TopNewsID = v.NewsID,
                                StateCode = v.StateCode,
                                StateName = v.StateName,
                                IsApproved = v.IsApproved,
                                IsTopNews = v.IsTopNews,
                                Heading = v.Heading,
                                DttmCreated = v.DttmCreated
                            });
                    });
                    ModelState.Clear();

                    activeList.Message = string.Format(Message.ApprovedSuccessfully, selectedItem.Count().ToString());
                }
                else
                {
                    activeList.Message = Message.SelectToApprove;
                }

                return View(activeList);
            });
        }