예제 #1
0
        }//UploadFile (Upload to /Audio)


        
        public JsonResult EditFile([Bind("AudioFilesID,File,Description")] AudioFiles FileEdit)
        {
            try
            {
                _context.Update(FileEdit);
                _context.SaveChanges();
                return Json("Edited");
            }
            catch
            {
                return Json("Failed");
            }
        }//EditFiles (Confirmed/Execute)
예제 #2
0
        }//AddTags (Create)

        public JsonResult EditTag([Bind("TagsID,Tag")] Tags TagEdit)
        {
            try
            {
                _context.Update(TagEdit);
                _context.SaveChanges();
                return(Json("Edited"));
            }
            catch
            {
                return(Json("Failed"));
            }
        }//EditTags (Confirmed/Execute)