public string Add(User _user, Library library) { Entities.User user = new Entities.User(); user.Name = _user.Name; Entities.Library lib = new Entities.Library(); lib.LibraryKey = Guid.NewGuid().ToString(); lib.User = user; _bookRDbContext.Users.Add(user); _bookRDbContext.Libraries.Add(lib); _bookRDbContext.SaveChanges(); return(lib.LibraryKey); }
public void DeleteLibrary(Entities.Library library) { _context.Libraries.Remove(library); }
public void CreateLibrary(Entities.Library library) { _context.Libraries.Add(library); }
public void UpdateLibrary(Entities.Library library) { }