Example #1
0
        // GET: MailBoxes
        public async Task <IActionResult> Index()
        {
            var userid = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;

            return(View(await _service.GetAllAsync(userid)));
        }
        public async Task <ActionResult <IEnumerable <MailBox> > > GetAllAsync()
        {
            var lists = await _mailBoxService.GetAllAsync();

            return(Ok(lists));
        }