Example #1
0
        public void AddImageFromFile(string file, string resized, string thumb, string userid)
        {
            var myfile = new FileModel();

            myfile.Info(file, resized, thumb, userid);

            ijpContext.File.Add(myfile);
            ijpContext.SaveChanges();
        }