示例#1
0
 public Library AddContentLibrary(string libraryName, BXCModelEntities context = null)
 {
     context = context ?? new BXCModelEntities();
         var libraryRepo = new LibraryRepository(context);
         return libraryRepo.AddLibrary(libraryName);
 }
示例#2
0
        public ActionResult <Library> Post([FromBody] Library value)
        {
            Library result = _repo.AddLibrary(value);

            return(Created("/api/library/" + result.Id, result));
        }