public IHttpActionResult GetUsersByBookClub(string bookClubName) { UserBookClubJoinService userBookClubJoinService = CreateUserBookClubJoinService(); var userBookClubJoin = userBookClubJoinService.GetUsersByBookClub(bookClubName); return(Ok(userBookClubJoin)); }
public IHttpActionResult GetAllDetails(int id) { UserBookClubJoinService userBookClubJoinService = CreateUserBookClubJoinService(); var userBookClubJoin = userBookClubJoinService.GetAllUserBookClubDetails(id); return(Ok(userBookClubJoin)); }
public IHttpActionResult GetAllBookClubsOfUser(string userName) { UserBookClubJoinService userBookClubService = CreateUserBookClubJoinService(); var userBookClubJoin = userBookClubService.GetAllBookClubsOfUser(userName); return(Ok(userBookClubJoin)); }
private UserBookClubJoinService CreateUserBookClubJoinService() { var Id = Guid.Parse(User.Identity.GetUserId()); var noteService = new UserBookClubJoinService(Id); return(noteService); }