Exemplo n.º 1
0
        public ActionResult <AccountWithTypes> DeleteTypeFromAccount(int typeId)
        {
            var  userId = Convert.ToInt32(User.FindFirst("sub")?.Value);
            bool result = accountDAO.DeleteTypeFromAccount(userId, typeId);

            if (result)
            {
                return(NoContent());
            }

            return(StatusCode(500));
        }