internal Transaction Edit(Transaction transToUpdate)
        {
            Transaction foundTransaction = _repo.GetById(transToUpdate.Id, transToUpdate.UserId);

            if (_repo.Edit(transToUpdate) && foundTransaction != null)
            {
                return(transToUpdate);
            }
            throw new Exception("You cannot edit this transaction.");
        }