Beispiel #1
0
        public ActionResult <string> Create(string myName, string content, string circleNamesList, string img)
        {
            List <string> circleList = new List <string>();

            string[] circleSplit = circleNamesList.Split(';', StringSplitOptions.RemoveEmptyEntries);

            foreach (var index in circleSplit)
            {
                if (index != null)
                {
                    circleList.Add(index);
                }
            }

            return(postFunctions.CreatePost(myName, content, circleList, img));
        }