public Subjects createSubject(string name, string conspect, string url)
        {
            using (var db = new NTR2013Entities())
            {
                var original = db.Subjects.ToList();
                foreach (Subjects s in original)
                {
                    if (s.Name.Trim().Equals(name))
                    {
                        return(null);
                    }
                }

                var subject = new Subjects {
                    Name = name, Conspect = conspect, url = url
                };
                db.Subjects.Add(subject);
                db.SaveChanges();
                return(subject);
            }
        }
        public Subjects createSubject(string name, string conspect, string url)
        {
            using (var db = new NTR2013Entities())
            {
                var original = db.Subjects.ToList();
                foreach (Subjects s in original)
                {

                    if (s.Name.Trim().Equals(name))
                        return null;
                }

                var subject = new Subjects { Name = name, Conspect = conspect, url = url };
                db.Subjects.Add(subject);
                db.SaveChanges();
                return subject;
            }
        }