public async Task <IActionResult> Login([FromBody] LoginRequestData requestData) { var authenticationData = await _domainService.AskAsync(new LoginUser(requestData.Email, requestData.Password)); return(Ok(authenticationData)); }
public async Task <IActionResult> Get() { var users = await _domainService.AskAsync(new GetModerators(User.GetUserId())); return(Ok(users)); }
public async Task <IActionResult> Get() { var bookList = await _domainService.AskAsync(new GetPrivateList(User.GetUserId())); return(Ok(bookList)); }
public async Task <IActionResult> GetRange([FromQuery] string query, [FromQuery] int?chunk, [FromQuery] int?count) { var bookLists = await _domainService.AskAsync(new FindSharedLists(query, chunk, count)); return(Ok(bookLists)); }
public async Task <IActionResult> Get() { var statuses = await _domainService.AskAsync(new GetBookStatuses()); return(Ok(statuses)); }
public async Task <IActionResult> Get() { var tags = await _domainService.AskAsync(new GetTags()); return(Ok(tags)); }
public async Task <IActionResult> GetAvailableForModeration() { var lists = await _domainService.AskAsync(new GetModeratedLists(User.GetUserId())); return(Ok(lists)); }