Beispiel #1
0
        public List <FeedBackModel> Index()
        {
            List <FeedBack>      mandates    = ms.GetMany().ToList();
            List <FeedBackModel> mandatesXml = new List <FeedBackModel>();

            foreach (FeedBack i in mandates)
            {
                mandatesXml.Add(new FeedBackModel
                {
                    Description  = i.Description,
                    FeedBackId   = i.FeedBackId,
                    FeedBackDate = i.FeedBackDate,
                    sentiment    = i.sentiment,
                    ParentId     = i.ParentId,
                });
            }
            return(mandatesXml);
        }