Esempio n. 1
0
        public async Task <ActionResult <IEnumerable <ViewModelKeep> > > GetKeepsByVault(int id)
        {
            try
            {
                Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>();

                return(Ok(_ks.GetAllByVaultId(userInfo?.Id, id)));
            }
            catch (System.Exception e)
            {
                return(BadRequest(e.Message));
            }
        }