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

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