public Library AddContentLibrary(string libraryName, BXCModelEntities context = null) { context = context ?? new BXCModelEntities(); var libraryRepo = new LibraryRepository(context); return libraryRepo.AddLibrary(libraryName); }
public ActionResult <Library> Post([FromBody] Library value) { Library result = _repo.AddLibrary(value); return(Created("/api/library/" + result.Id, result)); }