Esempio n. 1
0
        public async Task <IActionResult> Login([FromBody] LoginRequestData requestData)
        {
            var authenticationData =
                await _domainService.AskAsync(new LoginUser(requestData.Email, requestData.Password));

            return(Ok(authenticationData));
        }
Esempio n. 2
0
        public async Task <IActionResult> Get()
        {
            var users = await _domainService.AskAsync(new GetModerators(User.GetUserId()));

            return(Ok(users));
        }
Esempio n. 3
0
        public async Task <IActionResult> Get()
        {
            var bookList = await _domainService.AskAsync(new GetPrivateList(User.GetUserId()));

            return(Ok(bookList));
        }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
        public async Task <IActionResult> Get()
        {
            var statuses = await _domainService.AskAsync(new GetBookStatuses());

            return(Ok(statuses));
        }
Esempio n. 6
0
        public async Task <IActionResult> Get()
        {
            var tags = await _domainService.AskAsync(new GetTags());

            return(Ok(tags));
        }
Esempio n. 7
0
        public async Task <IActionResult> GetAvailableForModeration()
        {
            var lists = await _domainService.AskAsync(new GetModeratedLists(User.GetUserId()));

            return(Ok(lists));
        }