Пример #1
0
        public bool UpdateText(string id, string text)
        {
            int rightId;

            if (Int32.TryParse(id, out rightId))
            {
                foreach (var item in userFile)
                {
                    if (item == rightId)
                    {
                        _fileDao.UpdateText(rightId, text);
                        return(true);
                    }
                }
            }

            Console.WriteLine("It's not your file!");
            Console.WriteLine();
            return(false);
        }